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:
- 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
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!
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!