LDAP Queries never work

J

Jim in Arizona

Sorry for the cross post (win2000.general) but no one had an answer for
me there.

We setup our AD network a few years ago wtih four domain controllers and
four sites (one DC per site). The setup was fair basic and strait
foward; one dc at each site, each dc named DC1, DC2, and so on, all a
single domain/forest. We named it hhs.local.

On a workstation when I try to query the directory using LDAP, I do so
like this:

1) start, run
2) in the run field I put ldap://hhs.local
3) I click ok and the find people window comes up.
4) I put in a name (mine, for instance) and click find now.
5) I get an error window that says: "An error occured while performing
the search. Your computer , your Internet service provider, or the
specified directory service may be disconnected. Check your connections
and try again. Operations Error.

If I try look through the directory using My Network Places, I am
successful (My Network Places, then clicking on Search Active Directory).

Not being able to access LDAP directly in such a way has never been an
issue until I wanted to do a little ASP.NET programming that will query
the directory using LDAP to get a list of usernames for a project on our
internal web server.

TIA,
Jim
 
J

Joe Richards [MVP]

Doing that pulls up the Windows Address Book (wab.exe) which is
generally not considered an LDAP browser, if you have properly
configured the application it can work but it rarely is ever
configured.... FYI. It isn't by default configured and you entering
LDAP://blah doesn't do anything to configure it, it simply launches it,
it never even knows about what you typed.

If you do a network trace of the query it sends, it is usually, if I
recall, focuses on the base of c=US which no Active Directory will ever
have as a valid DN.

Also WAB has NOTHING to do with programming in .NET.

joe

--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm
 
J

Jim in Arizona

Thanks a lot for you input, Joe.

I will go ahead and just give the vb.net code a try and see what
happens. As long as I know it may work regardless of wab not working
with an LDAP query, then it leaves me with some hope. :)

Jim
 
J

Joe Richards [MVP]

If you're clients are logging on and getting group policy normally and
you generally don't have an environment that is falling apart I would be
shocked if your LDAP Queries weren't working.

joe

--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm
 

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

Top