Results 1 to 5 of 5

Thread: LDAP Query AD

  1. #1
    Join Date
    Sep 2005
    Posts
    175

    LDAP Query AD

    Is there anyone who can tell me how should I query AD for account containing specific word in the DisplayName. I am using Custom Search in Ad and I have to write the LDAP query that needs to display all accounts where DisplayName contains test. Also, display all accounts where DisplayName contains (Test). I am actually new to LDAP and I want this to be in AD. Thanks for any help.

  2. #2
    Join Date
    Sep 2005
    Posts
    1,370

    Re: LDAP Query AD

    You can try with ldp.exe and the search facility there. As a search base, you can choose your domain, ldap path, for instance: "DC=domain,DC=com", the scope might be "Subtree" and your searc filter would go like: ( &(objectClass=user)(objectCategory=person)(displayName=*test*) )

  3. #3
    Join Date
    Sep 2005
    Posts
    175

    Re: LDAP Query AD

    Thanks for the suggestions, but I was actually looking for how to do this via the AD Query Interface.

  4. #4
    Join Date
    Sep 2005
    Posts
    1,370

    Re: LDAP Query AD

    You can try to use the same query that I have posted earlier and then go for New > Query > Button [Define Query...], in Find, select "Custom Query" and then Advanced. After that in the Query pane, you can actually paste the code.

  5. #5
    Join Date
    Jun 2010
    Posts
    2
    Another really cool tool is the PowerShell CMDLETs made by Quest Software. This cmdlet is really powerful and can do a lot.

    You can do get-qaduser -LDAPFilter '(displayname=a*)'
    I hope this helps...

Similar Threads

  1. LDAP query to speficied LDAP server on TCP port 389 failed
    By Shash in forum Windows Server Help
    Replies: 2
    Last Post: 02-05-2012, 05:01 PM
  2. LDAP query to two different domains
    By manjusha in forum Technology & Internet
    Replies: 1
    Last Post: 01-12-2010, 04:58 PM
  3. ldap query with guid
    By kyosang in forum Active Directory
    Replies: 2
    Last Post: 17-06-2009, 07:34 PM
  4. LDAP query
    By Palaksi in forum Active Directory
    Replies: 3
    Last Post: 11-12-2008, 02:09 AM
  5. LDAP query can it be done ?
    By zscw1 in forum Active Directory
    Replies: 3
    Last Post: 13-11-2008, 10:08 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,618,081.86620 seconds with 17 queries