I am trying to use Active Directory to check the groups that the current user is a member of. I was trying to use
HttpContext.Current.User.IsInRole(role) and it always returned false. I am a member of the Domain\WebAdmin group, but
IsInRole("Domain\WebAdmin") returns false when it checks my account against active directory. My server OS is Windows 2000 Server.
I used the following function to run through the debugger and see if I was authenticating to active directory:
=========================================================================================
Public Shared Function GetUserGroupMembership(ByVal strUser As String) As StringCollection
Dim groups As New StringCollection
HttpContext.Current.User.IsInRole(role) and it always returned false. I am a member of the Domain\WebAdmin group, but
IsInRole("Domain\WebAdmin") returns false when it checks my account against active directory. My server OS is Windows 2000 Server.
I used the following function to run through the debugger and see if I was authenticating to active directory:
=========================================================================================
Public Shared Function GetUserGroupMembership(ByVal strUser As String) As StringCollection
Dim groups As New StringCollection