Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , ,

Sponsored Links



LDAP Search Query Syntax

Active Directory


Reply
 
Thread Tools Search this Thread
  #1  
Old 06-08-2008
Giles
 
Posts: n/a
LDAP Search Query Syntax

Hi All,

Hoping someone might be able to help. I want to use ADModify.NET to change
some users home directory's. However, I'm getting stuck with the search
filter.

I'd like to find all users where their samaccount name starts with "a" and
matches a specific server eg server1

The first part of the query, to find samaccount names starting with a is
fine but it's the homedirectory part I'm stuck on. I would like to find all
users homedirectory where it starts with the path: \\server1

Please take a look at it below:

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

I've added quotes, extra backslahes but it still doesn't seem to work, can
anyone help please?

Thanks!!
Reply With Quote
  #2  
Old 06-08-2008
Giles
 
Posts: n/a
RE: LDAP Search Query Syntax

Sorry, ignore that, found this handy link where it describes the special
characters:

http://support.microsoft.com/default...b;EN-US;255602


"Giles" wrote:

> Hi All,
>
> Hoping someone might be able to help. I want to use ADModify.NET to change
> some users home directory's. However, I'm getting stuck with the search
> filter.
>
> I'd like to find all users where their samaccount name starts with "a" and
> matches a specific server eg server1
>
> The first part of the query, to find samaccount names starting with a is
> fine but it's the homedirectory part I'm stuck on. I would like to find all
> users homedirectory where it starts with the path: \\server1
>
> Please take a look at it below:
>
> (&(sAMAccountName=a*)(homeDirectory=\\server1*))
>
> I've added quotes, extra backslahes but it still doesn't seem to work, can
> anyone help please?
>
> Thanks!!

Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "LDAP Search Query Syntax"
Thread Thread Starter Forum Replies Last Post
SQL Server - Update Query Syntax Error rmadler Software Development 2 02-02-2010 05:10 AM
Syntax for SQL query in JSP. elldeegee Software Development 3 04-06-2009 10:44 AM
LDAP query to speficied LDAP server on TCP port 389 failed Shash Windows Server Help 1 29-05-2009 09:46 PM
LDAP Query Anzelem Window 2000 Help 3 07-02-2008 10:23 PM
LDAP Search Query Error jeff Active Directory 4 19-03-2006 05:15 AM


All times are GMT +5.5. The time now is 12:41 PM.