Author: mike_smith | Posted on: 6/7/2009 11:15:31 AM | Views : 407

Hi everyone,
I need some help with user authentication via Active Directory. I'm using .NET 2.0.
I know there's the User.IsInRole("domain\roleName") method, but for some reason, for me it doesn't work the way I want it to.
I've the windows authentication option in the IIS and disabled the Anonymous access to the site.
I've also tried to enable impersonation in  the web.config.
It seems to me that the IsInRole method references the local groups rather then the groups in the Active Directory.
How do I make the my application (the IsInRole)  to look into the AD. If I'm able to do so I'd  also like to question the sub-groups within a certain group (drill down)?
What am I doing wrong and how to do it correctly. Any help would be greatly appreciated.
Thanks in advance,
Mike.
 
...

Go to the complete details ...