I have a site through which the majority of users will be anonymous but a few will be active directory users.
I'd like to;
- Enable full anonymous access for everyone without logins.
- Detect the AD users. 开发者_如何学JAVA
- Check if the AD users are members of a specific admin group.
I'm using .Net 4.0, C# and IIS 7.5 running on Windows Server 2008 R2.
Thanks in advance
If you enable anonymous access windows authentication will not happen. You can implement a custom authentication provider that calls AD and sets the anonymous user when authentication fails.
You can use AD login in asp.net so why not just hide AD content and allow the user to login to see the full view?
精彩评论