I am working on a query that needs to look up Contacts that are not Users in an OU
OU = Test Users 2
DC = Domain
contacs are stroed under Test Users 2
Example of a contact distinguishedName: CN=contact1,OU=Test Users 2,DC=domain,DC=ca
The queries I tried are below:
(&(objectClass=contact)(memberof=OU=Test User 2,DC=domain,DC=ca) (!objectClass=person)) - that didn't work
then i tried
(&((objectClass=person)(objectClass=contact)(memberof=OU=Test Users 2,DC=domain,DC=ca))((!objectClass= person)(!objectClass=user)))
this didn't work either
I tried this query because I think I have got 2 objectClass for contacts and users listed in the LDAP Browser such as for Contacts it see that it is objectClass= person and objectClass=contact and for users I see objectClass=person and objectClass = user in the LDAP browser that I use.
Thanks a lot for the help in advance!!!
W2K3 AD, and Softrera LDAP Browser 2.6
March 7, 2010 9:10 PM
March 8, 2010 12:10 AM