: The authentication mechanism is unknown

timm_d

New member
Joined
Nov 13, 2003
Messages
2
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
 
Thanks for the reply. I already tried that one though. I removed myself from every group except DOMAIN\WebAdmin and I got the same result.
 
Are you sending your user name and domain separately in the ldap string? if so, try combining them. that solved a similiar problem for me
 
Back
Top