Link to home
Start Free TrialLog in
Avatar of Rakafkaven
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_Objects,DC=axp,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.
SOLUTION
Avatar of mdiglio
mdiglio
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rakafkaven
Rakafkaven

ASKER

This is the first group.  I'll try throwing an InStr check before the directory call and see if I get better results.
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!