Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Other > Zimbra in Education

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 09-16-2005, 10:43 AM
Junior Member
 
Posts: 5
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.
Reply With Quote
  #2 (permalink)  
Old 09-16-2005, 11:14 AM
Zimbra Employee
 
Posts: 4,784
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
Reply With Quote
  #3 (permalink)  
Old 09-16-2005, 11:45 AM
Junior Member
 
Posts: 5
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.
Reply With Quote
  #4 (permalink)  
Old 09-16-2005, 02:45 PM
Zimbra Employee
 
Posts: 6
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 07:26 PM.
Reply With Quote
  #5 (permalink)  
Old 09-17-2005, 06:51 AM
Junior Member
 
Posts: 5
Default Thanks

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


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0