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!
LDAP : How to config the filter and base ?
-
- Ambassador
- Posts: 4558
- Joined: Fri Sep 12, 2014 9:52 pm
LDAP : How to config the filter and base ?
What were you trying to use for a filter?
LDAP : How to config the filter and base ?
I want my user can search the e-mail address in the LDAP by firstname , last name or full name
-
- Ambassador
- Posts: 4558
- Joined: Fri Sep 12, 2014 9:52 pm
LDAP : How to config the filter and base ?
So try:
(|(mail=*%s*)(sn=*%s*)(givenname=*%s*))
(|(mail=*%s*)(sn=*%s*)(givenname=*%s*))
LDAP : How to config the filter and base ?
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 ?
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 ?
-
- Ambassador
- Posts: 4558
- Joined: Fri Sep 12, 2014 9:52 pm
LDAP : How to config the filter and base ?
For the search we search email addresses. We don't look at other attributes.