The service is hosted on IIS 6, where Windows authentication is enabled and anonymous - disabled. the above worked fine for me but now i want to limit access to only a single uers. i tried the following:
<system.web> <authentication mode="Windows" /> <authorization> <deny users="?" /> </authorization> </system.web>
but that did not work - all the domain users have access, not just user1.
<system.web> <authentication mode="Windows" /> <authorization> <allow users="DOMAIN\user1" /> <deny users="*" /> </authorization> </system.web>
I also tried to utilize PrincipalPermission attribute to limit access to a method:
<authorization> <allow users="DOMAIN\Group1"/> <deny users="DOMAIN\Domain Users"/> </authorization>
[PrincipalPermission(SecurityAction.Demand, Role = "Group1")]
|Windows 10 IIS and Windows Authentication to SQL||21||54|
|Data is not showing from images||15||37|
|IIS rewrite rules for subsites as subfolders but not all||1||10|
|Not seen Link button||5||15|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
17 Experts available now in Live!