LDAP : How to config the filter and base ?

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

LDAP : How to config the filter and base ?

Postby wwlh » Fri Mar 03, 2006 3:27 am

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 ?

Postby 14319KevinH » Fri Mar 03, 2006 12:09 pm

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 ?

Postby wwlh » Fri Mar 03, 2006 8:08 pm

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 ?

Postby 14319KevinH » Fri Mar 03, 2006 8:42 pm

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 ?

Postby wwlh » Sun Mar 05, 2006 10:20 pm

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 ?

Postby 14319KevinH » Mon Mar 06, 2006 12:05 am

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

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 8 guests