LDAP / ADSI problems

G

Guest

I'm trying to access AD to retrive the list of groups that a member of the
domain belongs to, from an ASP.Net page.

No matter what code I try involving the DirectoryServies.DirectoryEntry
class, I get the same error each time: The server is not operational.

I've tried several versions of the ldap string to access the AD and after
scouring the newsgroups I've settled on trying both LDAP://dc=Example,dc=Corp
and LDAP://DomainController,dc=Example,dc=Corp.

I checked with our Network Admins and they provided me with the following
script:

Set objNetops = GetObject("LDAP://cn=Network Operations
Users,cn=Users,dc=example,dc=corp")

For Each oMember In objNetops.Members

wscript.Echo oMember.name

Next

And it does return information. Using the same LDAP:// string gives me the
server not operational error.

I've tried using a couple of examples from MSDN and codeproject, receiving
the same error every time.

So I'm still unable to search AD....ANY IDEAS???????


Ryan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top