Reputation: 1950
Here is an extract of my Web.Config for the windows authentication settings.
<authentication mode="Windows" />
<identity impersonate="true" />
<roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider" />
<authorization>
<!-- The following roles are group memberships in Active Directory. -->
<allow roles="domain\finance,domain\it" />
<deny users="*" />
</authorization>
Im using .net 4.0 classic pipemode: classic
Within IIS I have the following Authentication settings applied:
Anonymous Autehntication: Disabled
ASP.Net Impersonation: Enabled
Basic Authentication: Disabled
Digest Authetication: Disabled
Forms Authetication: Disabled
Windows Authentication: Enabled
When accessing the page from a user account within a role (AD Group) i am presented with a username / password window :(
here is the entire web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="it@domain.com">
<network host="10.0.0.150" port="25" />
</smtp>
</mailSettings>
</system.net>
<system.web>
<compilation targetFramework="4.0" />
<customErrors mode="Off" />
<authentication mode="Windows" />
<identity impersonate="true" />
<roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider" />
<authorization>
<allow roles="domain\finance,domain\it" />
</authorization>
</system.web>
</configuration>
Upvotes: 0
Views: 1000
Reputation: 11
The possible solution can be:
Making sure that you are using Internet explorer based browser, since Windows Authentication gets your login credentials via IE, otherwise request for credentials is a normal behavior.
If you are using IE - make sure that the site you are accessing is added to "Local intranet" sites
Check the physical folder you are deploying the solution to, because there can be certain ntfs permissions denying access and thus asking for creds.
Upvotes: 1