Announcement

Collapse
No announcement yet.

Find Contacts under one OU that are not Users - Active Directory Lookup

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Find Contacts under one OU that are not Users - Active Directory Lookup

    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
    DC= CA

    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)(membe rof=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.

    Specs: W2K3 server and Softrera LDAP browser 2.6

    Thanks a lot for the help in advance!!!:

  • #2
    Re: Find Contacts under one OU that are not Users - Active Directory Lookup

    try DSQuery contact and see if this assists...

    http://technet.microsoft.com/en-us/l...8WS.10%29.aspx
    Please do show your appreciation to those who assist you by leaving Rep Point https://www.petri.com/forums/core/im.../icon_beer.gif

    Comment

    Working...
    X