Active Directory question
Hello!
I'm trying to log in users on a intranet site by using our active directory. I created three groups with a simple boolean check to see if that user is part of that group. But it's not looking at the active directory at all, because it doesn't return a true or false value.
Here is some code.
If Request.IsAuthenticatedThenLabel1.Text = User.Identity.Name
''' Label2.Text = User.IsInRole("DocAccel Admins")Label2.Text = User.IsInRole(
"DocAccel Nurses")'Label2.Text = User.IsInRole("Administrators")EndIfIf Label2.Text = ("False")ThenResponse.Redirect(
"NoAccess.aspx")It's pretty simple. I know the User.IsInRole works, because I have tried on a diffrent AD. The problem I have with the AD I'm working with has sevral OU's. Up to five levels.
Any thought how I can get to a group that is that deep into the AD? Or should this work?
Thanks!
Rudy

