Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LDAP groups

Status
Not open for further replies.

shu745

Programmer
May 14, 2001
79
US
Hi all:

I'm new to ADSI and I'm trying to retrieve the sub groups of our company's active directory, so I can get down to the user level and query the user's properties (name, telephone, etc). I don't have the directory structure, so I tried to get it programmatically:

Code:
set container = GetObject("LDAP://ourserver.ourdomain.com")
For Each group in container
   response.write(group.name&"<br>")
Next

- and i get these results:

[blue]
cn = Group1
cn = Group2
ou = Group3
[/blue]

How do I drill down to get the groups for, say, Group3? I tried using

Code:
set container = GetObject("LDAP://servername.domain.com/ou=Group3")

but I receive a generic error(0x80072020).

Can someone please help me to connect correctly? I've been working on this for days!!

Much thanks for any assistance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top