Hi,
I'm normally ok writing SQL queries and whatnot but LDAP seems to have a bit more to it (i guess because its lightweight). I'm trying to query AD to return two users from a domain by their names. I can't seem to get the OR function to work using the pipe | operator. Is this right or am I way off? Are my () all in the wrong place? It#s a friday afternoon and its starting to get the better of me... See the query below
Any help greatly appreciated
I'm normally ok writing SQL queries and whatnot but LDAP seems to have a bit more to it (i guess because its lightweight). I'm trying to query AD to return two users from a domain by their names. I can't seem to get the OR function to work using the pipe | operator. Is this right or am I way off? Are my () all in the wrong place? It#s a friday afternoon and its starting to get the better of me... See the query below
Code:
(&(!cn=SystemMailbox{*})(&(objectCategory=user)(cn=UserName1*)) | (&(objectCategory=user)(cn=UserName2*)))
Any help greatly appreciated