|
| |||||||||
| Tags: ldap, query, syntax |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| 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!! |
|
#2
| |||
| |||
| 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!! |
![]() |
|
| Thread Tools | Search this Thread |
| |
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 |