#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2006
    Posts
    16
    Rep Power
    0

    Searching AD using LDAP Filter?


    I'm trying to search using an AD using LDAP filter but to no avail.

    filter: &(cn=me)(memberOf=CN=dept,OU=dept,OU=group,DC=comp any,DC=local)

    basedn: OU=group,DC=company,DC=local

    This doesn't return a result even though user 'me' is part of the Group. Will greatly appreciate any suggestions. Thanks.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2009
    Location
    Charlotte, NC
    Posts
    111
    Rep Power
    9
    I see a couple issues with the filter
    1. 'DC=comp any' should probably be 'DC=company'
    2. "(&(cn=me)(memberOf=CN=dept,OU=dept,OU=group,DC=company,DC=local))"
    3. in case you have the DN of the group wrong just search for "(cn=me)" and double check the value of attribute 'memberOf'

IMN logo majestic logo threadwatch logo seochat tools logo