Results 1 to 3 of 3

Thread: LDAP filter for GAl Active directory

  1. #1
    draurdraur is offline Starter Member
    Join Date
    Aug 2012
    Posts
    3
    Rep Power
    2

    Default LDAP filter for GAl Active directory

    Hi,

    I have filter for GAL:
    (&(|(cn=%s*)(sn=%s*)(gn=%s*)(mail=%s*)))

    Auto complete filter is:
    (|(cn=%s*)(sn=%s*)(gn=%s*)(mail=%s*))

    Problem is that there are computer account shown also. How can I exclude them?

    I tried to show only accounts that have attribute company by

    (&(|(cn=%s*)(sn=%s*)(gn=%s*)(mail=%s*))(company=ac me))

    but no luck.

  2. #2
    bdial's Avatar
    bdial is offline Moderator
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    10

    Default

    try adding (objectClass=person) to the filter

  3. #3
    draurdraur is offline Starter Member
    Join Date
    Aug 2012
    Posts
    3
    Rep Power
    2

    Default

    It was long time ago but thank you. I am also using (sAMAccountType=805306368) which means, it is SAM_NORMAL_USER_ACCOUNT

    Entire filter looks like this:

    (&(|(cn=%s*)(sn=%s*)(gn=%s*)(mail=%s*))(sAMAccount Type=805306368))

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. LDAP External and Active Directory!!!
    By celeron in forum Administrators
    Replies: 8
    Last Post: 02-23-2012, 05:58 PM
  2. LDAP or Active Directory?
    By sadams@bigrocksports.com in forum Administrators
    Replies: 4
    Last Post: 05-10-2010, 06:54 AM
  3. LDAP or Active Directory?
    By sadams@bigrocksports.com in forum /etc
    Replies: 1
    Last Post: 05-09-2010, 03:58 PM
  4. Active Directory/LDAP
    By dgcarter in forum Installation
    Replies: 1
    Last Post: 03-05-2007, 10:33 AM
  5. Active Directory ldap GAL help.
    By Splat in forum Administrators
    Replies: 1
    Last Post: 01-19-2006, 08:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •