Results 1 to 2 of 2

Thread: LDAP Search Query Syntax

  1. #1
    Join Date
    Jul 2006
    Posts
    43

    LDAP Search Query Syntax

    I need to use ADModify.NET to change few users home directory's. But still I am getting stuck with the search filter. I want to find all users where their samaccount name starts with "a" and matches a specific server, for instance, server1. The first part of the query to find samaccount names staring with a fine but its the homedirectory part I am stuck on. I always want to find all users homedirectory where it starts with the path: \\server1. You can also take a look at it below:

    (&(sAMAccountName=a*)(homeDirectory=\\server1*))

    Thanks for any help.

  2. #2
    Join Date
    Jan 2006
    Posts
    3,792

    RE: LDAP Search Query Syntax

    To query most directories by using the LDP utility, you must first connect to the directory and then bind to the directory to authenticate yourself to the directory. You can check for the same refrence from here - http://support.microsoft.com/default...b;EN-US;255602

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. Syntax for SQL query in JSP.
    By elldeegee in forum Software Development
    Replies: 3
    Last Post: 04-06-2009, 10:44 AM
  3. LDAP query
    By Palaksi in forum Active Directory
    Replies: 3
    Last Post: 11-12-2008, 02:09 AM
  4. LDAP query can it be done ?
    By zscw1 in forum Active Directory
    Replies: 3
    Last Post: 13-11-2008, 10:08 AM
  5. LDAP Search Query Error
    By bjude in forum Active Directory
    Replies: 3
    Last Post: 17-03-2006, 10:35 PM

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,622,377.85199 seconds with 18 queries