LDAP : How to config the filter and base ?

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
wwlh
Posts: 3
Joined: Fri Sep 12, 2014 10:06 pm

LDAP : How to config the filter and base ?

Post by wwlh »

I have a Lotus Domino LDAP server , the standard user account seems like this :
CN=FirstName LastName,OU=Department_Code,OU=Factory_code,O=Company_Name
for example :

cn=Mary Hoo,ou=acc,ou=fc1,o=mabuchi
In the Zimbra Admin web GUI , no matter how I typed GAL config , the test result is :
GAL search failed

Test result check.INVALID_SEARCH_FILTER:
javax.naming.directory.InvalidSearchFilterException: Unbalanced parenthesis; remaining name 'OU=acc,OU=fc1,O=mabuchi'
The dump of account ldapsearch result :


CN=Tak Lo,OU=acc,OU=fc1,O=mabuchi

cn=Tak Lo

mail=tak.lo@mabuchi-motor.com.hk

objectclass=dominoPerson

objectclass=inetOrgPerson

objectclass=organizationalPerson

objectclass=person

objectclass=top

dominocertificate=03004D02 F91941B5 18G01626 G002664E

givenname=Tak

sn=Lo

uid=tak.lo

maildomain=mabuchi


********************************************
Pls tell me how to config the GAL if I want user can search the e-mail address just by firstname , last name or full name , Thanks in advance!
14319KevinH
Ambassador
Ambassador
Posts: 4558
Joined: Fri Sep 12, 2014 9:52 pm

LDAP : How to config the filter and base ?

Post by 14319KevinH »

What were you trying to use for a filter?
wwlh
Posts: 3
Joined: Fri Sep 12, 2014 10:06 pm

LDAP : How to config the filter and base ?

Post by wwlh »

I want my user can search the e-mail address in the LDAP by firstname , last name or full name
14319KevinH
Ambassador
Ambassador
Posts: 4558
Joined: Fri Sep 12, 2014 9:52 pm

LDAP : How to config the filter and base ?

Post by 14319KevinH »

So try:


(|(mail=*%s*)(sn=*%s*)(givenname=*%s*))

wwlh
Posts: 3
Joined: Fri Sep 12, 2014 10:06 pm

LDAP : How to config the filter and base ?

Post by wwlh »

Thanks ! it works fine with your code .

But another question raise-up :

In the GAL search result , my user can only see the e-mail address .

So is it possible to show additional account information ( eg. tele , office ...) as well as email address ?
14319KevinH
Ambassador
Ambassador
Posts: 4558
Joined: Fri Sep 12, 2014 9:52 pm

LDAP : How to config the filter and base ?

Post by 14319KevinH »

For the search we search email addresses. We don't look at other attributes.
Post Reply