Page 1 of 1

swa ldap search

Posted: Wed Apr 05, 2006 6:09 pm
by eyalm
Hi,
is there a way to change the scope of a search to a external ldap server I've got?
I want to use an Openldap I have to retrieve the address book and I've noticed that I need to use the full DN as my baseDN to get the info I need.
Eg:

I have cn=eyal,ou=people,ou=houston,dc=company,dc=com

If I'm looking for 'eyal' and my baseDN=ou=houston,dc=company,dc=com I dont get any reply back.
If I use baseDN=ou=people,ou=houston,dc=company,dc=com I do get the info for Eyal.

any clues what's going on?

Posted: Thu Apr 06, 2006 6:56 am
by dannyt
Hi,

It is possible that the OpenLDAP server side imposes a search base/scope restriction anyway. To find out try the ldapsearch command using the appropriate search base/scope to see if you can find it. If the answer is No then this may not be a SWA issue.

Regards,
Danny

Posted: Thu Apr 06, 2006 9:36 am
by eyalm
when I run ldapsearch I dont specify the scope (I guess sub is default):

ldapsearch -xh serverip -b "dc=company,dc=com" "(cn=eyal*)"

it works fine and I get right response.

Posted: Thu Apr 06, 2006 2:09 pm
by eyalm
found it in

/opt/scalix-tomcat/webapps/webmail/WEB-INF/swa.properties

# LDAP search Scope (optional, default = one)
# Possible Values: sub, one, base
# swa.ldap.<n>.scope=sub

changed my /etc/opt/scalix/webmail/swa.properties
and its working now.