Windows-based Authentication problem.

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>
 
K

Ken Cox [Microsoft MVP]

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top