Rakafkaven
asked on
LDAP newbie trying to pull a list of groups + members w/ADO script
I'm trying to create a list of all groups and membership from my domain, using the script found here:
http://www.rlmueller.net/Programs/DocumentGroups.txt
I make it to line 62:
Set objGroup = GetObject("LDAP://" & strDN)
...at which point I get an 80005000 error (bad directory), source: (null). strDN at that point is:
CN=/SHG - Metro PA Mgm,CN=PDP Collaboration Services Objects,OU=PDP_GALSYNC_Obj ects,DC=ax p,DC=corp, DC=amexfa, DC=com
My extremely loose understanding of LDAP leaves me a little dry at this point. I know the mess of DC= at the end is the defaultNamingContext of my RootDSE, and I know it's correct, but that's about all I know. Any input would be appreciated.
http://www.rlmueller.net/Programs/DocumentGroups.txt
I make it to line 62:
Set objGroup = GetObject("LDAP://" & strDN)
...at which point I get an 80005000 error (bad directory), source: (null). strDN at that point is:
CN=/SHG - Metro PA Mgm,CN=PDP Collaboration Services Objects,OU=PDP_GALSYNC_Obj
My extremely loose understanding of LDAP leaves me a little dry at this point. I know the mess of DC= at the end is the defaultNamingContext of my RootDSE, and I know it's correct, but that's about all I know. Any input would be appreciated.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect! the aDSPath solution worked. Of course, my results are completely unreadable:
A3A0B63E8776453C962 (Global/Security)
Member: 385008F11037446BA14 (User)
Member: 0E0016186820401EBF8 (User)
Member: 723803D5FCF1451196F (User)
Member: 53C0B0383AD44C71A10 (User)
87117A422B4386B690D (Global/Security)
Member: BC1B99EFF47F46D49D7 (User)
Member: 4BCA7A31391B4A9C968 (User)
...
So there will be another question posted about that in about two minutes, if either of you are interested. Either way, thanks!
A3A0B63E8776453C962 (Global/Security)
Member: 385008F11037446BA14 (User)
Member: 0E0016186820401EBF8 (User)
Member: 723803D5FCF1451196F (User)
Member: 53C0B0383AD44C71A10 (User)
87117A422B4386B690D (Global/Security)
Member: BC1B99EFF47F46D49D7 (User)
Member: 4BCA7A31391B4A9C968 (User)
...
So there will be another question posted about that in about two minutes, if either of you are interested. Either way, thanks!
ASKER