LDAP query help request.
- From: "David Gibbons" <FreRange@xxxxxxxxxxxxxxxx>
- Date: Mon, 28 Aug 2006 17:01:54 -0700
Hello all,
I'm trying to create some LDAP queries and seem to be running into a syntax
problem.
(&(objectCategory=user)(|(department=*60)(department=*61))(&(|(department=0042*)(department=0043*))))
The above statement works however I'm trying to add one more filter to the
statement and nothing I do seems to work. The idea is as follows...
(employeeid=1111) or (((Department=*60) or (Department=*61)) and
((Department=0042*) or (Department=0043*)))
This would return all the results for the 4 department number combinations
plus the 1 user with the employee id or 1111.
I thought that this statement would work... (as well as many many many
different syntax changes and I think this is the last one I tried before
hitting the newsgroups.)
(&(objectCategory=user)(|(employeeid=1111))(|(department=*60)(department=*61))(&(|(department=0042*)(department=0043*)))(!userAccountControl:1.2.840.113556.1.4.803:=2))
But it return no results, just one user, every user in AD or is invalid
depending on the syntax change. I could do this is SQL but for some reason
I just can't seem to get the syntax correct in LDAP.
Anyone of there see what it is I'm doing wrong or could lead me to better
LDAP syntax example pages then the one I have found?
Thanks.
David Gibbons
.
- Follow-Ups:
- Re: LDAP query help request.
- From: Richard Mueller
- Re: LDAP query help request.
- Prev by Date: RE: Restricted Group Problem My Scenario and problem..what am i doing
- Next by Date: Re: LDAP query help request.
- Previous by thread: RE: Restricted Group Problem My Scenario and problem..what am i doing
- Next by thread: Re: LDAP query help request.
- Index(es):
Relevant Pages
|