Re: LDAP Queries never work



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


Jim in Arizona wrote:
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
.



Relevant Pages

  • Re: Windows 2003 Fail over...
    ... building yourself a new AD network. ... MVP - Directory Services ... the clients don't have access to a second dns server. ... how to make a second windows 2003 server to pick up at that time. ...
    (microsoft.public.windows.server.active_directory)
  • LDAP api ldap_set_option and LDAP_OPT_AUTO_RECONNECT parameter
    ... I am trying to handle network connection problems. ... the network goes down during a LDAP session, and is back a quite long ... And under both Windows XP and 2K, I don't get an error while performing ...
    (microsoft.public.win32.programmer.networks)
  • Re: PID 1212 slowly maxing out?
    ... Windows 2003 servers, but could it affect Windows XP as well? ... I'm on a home network running on wireless. ... Logical Disk Manager service ...
    (microsoft.public.windowsxp.help_and_support)
  • RE: Printing from Win9x clients stops
    ... Open Server Management. ... then right-click the name of the computer running Windows Small Business ... >From the client computer: ... The Select Network Component Type ...
    (microsoft.public.windows.server.sbs)
  • Re: Cant print to my Windows 98 shared printer from my XP compute
    ... >>>I can't print from the printer attached to my Windows 98 machine using my XP ... >>>Add Printer wizard and has a pipe attached, indicating a network printer. ... >>>98 machine and I can successfully ping the 98 machine from my XP laptop. ... >>>driver name showed up as UNIDRV.DLL on my XP test page when it last worked. ...
    (microsoft.public.windowsxp.network_web)