Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
i have a website program that using login control for users authentication.
but now i want to change my program to using windows users for authentication and fill Profile Properties values without login in program.
please help
Posted
Comments
abtinC# 2009 7-Apr-12 0:48am    
very tanx for your help

1 solution

In your web config simply specify
HTML
<authentication mode="Windows" />


Then inside:

XML
<authorization>
     <allow users="MYDOMAIN\joe, MYDOMAIN\Black, PC1\MaiO" />
     <allow roles="MYDOMAIN\Admins" />
     <deny users="*" />
   </authorization>


More on this argument:

http://msdn.microsoft.com/en-us/library/ms144284.aspx[^]

http://msdn.microsoft.com/en-us/library/ff647405.aspx[^]


Cheers
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900