LDAP Code to get Active Directory Groups
Posted on 2004-09-20
Can someone please supply me with code to get the groups a member belongs to using ASP and active directory (LDAP)?
I have all sorts of code samples to try to get the active directory groups using ASP (not .Net!) but I can’t get any of them to work. They work fine until I try to get the info on a specific user.
When I try:
strAction = “LDAP://CN=fred,CN=users,DC=domain,DC=local”
Set oContainer = GetObject(strAction)
/GHACapEx/Common/Security.asp, line 87
Which is not very helpful at all. (Like 87 is the GetObject)
Will pay up to 500 points for brilliant solutions but any help would be greatly appreciated.