windows authentication for multiple user in same domain

Posted by Valley under ASP.NET on 5/22/2013 | Points: 10 | Views : 1043 | Status : [Member] | Replies : 2
I want all the users from same domain name: XYZ to access my application below is my code.

<system.web>
<compilation debug="true" targetFramework="4.0" />
<authentication mode="Windows" />
<authorization>
<allow users="XYZ\HOW TO GRANT ACCESS TO ALL THE USERS HERE?" />
<deny users="*" />
</authorization>
<identity impersonate="true" />
</system.web>




Responses

Posted by: Satyapriyanayak on: 5/22/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
<authorization>
<allow roles="XYZ\Domain Users"/>
</authorization>

If this post helps you mark it as answer
Thanks

Valley, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Valley on: 5/24/2013 [Member] Starter | Points: 25

Up
0
Down
I tried it but its not working. when i changed the domain and ran the program it was opening.It did not show you are restricted to view this page.

Valley, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response