Results 1 to 5 of 5

Thread: LDAP Filter parameters?

  1. #1
    dmcushing is offline Junior Member
    Join Date
    Sep 2005
    Posts
    5
    Rep Power
    9

    Default LDAP Filter parameters?

    I am trying to set up an external LDAP filter for GAL in Zimbra, does anyone know what the variable substitution in the filter for the search item would be?

    ie. (|(cn=%s)(sn=%s))

    the %s would be my search term that I am looking for, any idea what this would be for the filter in the admin? I have tried %s and it doesn't work, and I cannot find any documentation on the variables anywhere.

  2. #2
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Well if you just want to search on the e-mail address it's:

    (mail=*)

    This is what you'd use in Thunderbird for example to get LDAP GAL included in your auto complete address selection.

    -kevin

  3. #3
    dmcushing is offline Junior Member
    Join Date
    Sep 2005
    Posts
    5
    Rep Power
    9

    Default

    No, I am trying to set up GAL in the Zimbra admin to access an external LDAP, that way our students can look up our faculty email addresses on another server.

  4. #4
    bhwang is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    6
    Rep Power
    9

    Default Variable subsitution

    %s is all you need for setting up external ldap query.

    Here is the filter that is actually used by Zimbra server
    (&(|(cn=*%s*)(sn=*%s*)(gn=*%s*)(mail=*%s*)(zimbraM ailDeliveryAddress=*%s*)(zimbraMailAlias=*%s*)(zim braMailAddress=*%s*))(objectclass=zimbraAccount))
    I have also tried the simple filter (|(cn=%s)(sn=%s)). It is working for me.

    I have also hookup to an external public server www.openldap.com with base dn dc=OpenLDAP,dc=org and filter (|(cn=*%s*)(sn=*%s*)). It works fine as well

    However, setting up ldap gal hookup is always tricky. There are couples of things to watch out for.

    1) LDAP search base, this has to fit your external ldap server layout since every installation is a bit different.
    2) Bind DN/Password, some ldap installation does not allow anonymous GAL access.

    One possible issue may be cn and sn are really set up differently. It is much safer to use (|(cn=*%s*)(sn=*%s*)) instead.
    Last edited by KevinH; 09-16-2005 at 06:26 PM.

  5. #5
    dmcushing is offline Junior Member
    Join Date
    Sep 2005
    Posts
    5
    Rep Power
    9

    Default Thanks

    That answered my question exactly - got it working perfectly now.


LinkBacks (?)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. LDAP Filter issue and GAL
    By G-Money in forum Administrators
    Replies: 2
    Last Post: 06-24-2010, 12:13 PM
  2. Zimbra Install Problem - getDirectContext
    By bsimzer in forum Installation
    Replies: 27
    Last Post: 07-19-2007, 10:12 AM
  3. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 06:45 AM
  4. Mac OSX install: Java errors & LDAP CA error
    By jefbear in forum Installation
    Replies: 9
    Last Post: 12-16-2006, 03:39 PM
  5. Replies: 4
    Last Post: 11-15-2006, 12:16 PM

Posting Permissions

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