Windows-based Authentication problem.

  • Thread starter Thread starter george d lake
  • Start date Start date
G

george d lake

Hi,
I need to grant access to a NT usergroup and to 3 other users that are
not in that group.
here is my web.config.

<authentication mode="Windows" />

<identity impersonate="true" />



<authorization>

<deny users="*" /> <!-- Allow all users -->

<allow users="user1" /> <!-- Allow all users -->

<allow users="user2" /> <!-- Allow all users -->

<allow users="user3" /> <!-- Allow all users -->

<allow roles="VYP\Domain Hum_Resources" />

</authorization>
 
You'll want to look up the WindowsPrincipal.IsInRole Method to get at NT
groups.

http://msdn.microsoft.com/library/d...ncipalwindowsprincipalclassisinroletopic2.asp

You can also look at the roles attribute in the web.config:

<allow roles="Admins"/>

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfallow.asp

Hi,
I need to grant access to a NT usergroup and to 3 other users that are
not in that group.
here is my web.config.

<authentication mode="Windows" />

<identity impersonate="true" />



<authorization>

<deny users="*" /> <!-- Allow all users -->

<allow users="user1" /> <!-- Allow all users -->

<allow users="user2" /> <!-- Allow all users -->

<allow users="user3" /> <!-- Allow all users -->

<allow roles="VYP\Domain Hum_Resources" />

</authorization>
 
Back
Top