Can't contact LDAP server

Hello!
I am trying to migrate my Zarafa from a Ubuntu 14.04.5 LTS server to a CentOS Linux release 7.4.1708 (Core) server.

Currently I am facing an “Can’t contact LDAP server”-error.
For more details I have set log_level = 5 in server.cfg, but it didn’t help much, this is the output:
LDAP (simple-) bind failed: Can’t contact LDAP server
Cannot instantiate user plugin: Failure connecting any of the LDAP servers
Unable to instantiate user plugin
Failed to authenticate user ingo from file:///var/run/zarafa using program httpd

I have tested ldapsearch and the user can be found.
ldapsearch -xLLL -b dc=mydomain,dc=xx uid=ingo

Any suggestion how to get this working?
How can I figure out the cause of the problem, as the logfile is not really helpful?

Hello @DerIngo,

did you use “ldap_host” or “ldap_uri” in /etc/kopano/ldap.cfg?

i think the user which is used for lookup (ldap_bind_user = cn=user,dc=mydomain,dc=xx) is a user with read rights.

i needed to change “ldap_user_unique_attribute = uidNumber” to “objectGuid”

and you wrote, you upgraded from zarafa (not kopano) to centos with zarafa or kopano?
because the zarafa attributes in ldap are all called:
zarafaResourceType
zarafaResourceCapacity
etc.
but in default kopano config this attributes are all called kopano…

this is depending on the ADscheme you imported in your ad.

try to update all kopano names in .cfg’s to zarafa.

coffee_is_life

CentOS 7.4.1708
Mariadb-5.5.56-2
KC 8.5.4.0-9.1
WebApp 3.4.5.1202-47.1 external Server - TCP-Socket
Z-Push 2.3.9+0-90.1
PHP-MAPI 8.5.4.0-9.1
PHP 5.6.25 with Zend OPcache v7.0.6-dev
DeskApp 1.5.0
Outlook 2016(64bit) KOE 1.6.282
Outlook 2010 -Zarafa 7.2.6

Hello @coffee_is_life,
thank you for your answer.
I try to move my Zarafa installation from one server to another. I have not attempted to move to Kopano by now.
I have set ldap_host, but also tried to set ldap_uri, but without success.

in ldap.conf:

line “ldap_user_search_filter” which filter is set?

i need to change that aswell to : “(&(zarafaAccount=1)(|(objectClass=user)(objectClass=contact)))”

coffee_is_life

CentOS 7.4.1708
Mariadb-5.5.56-2
KC 8.5.4.0-9.1
WebApp 3.4.5.1202-47.1 external Server - TCP-Socket
Z-Push 2.3.9+0-90.1
PHP-MAPI 8.5.4.0-9.1
PHP 5.6.25 with Zend OPcache v7.0.6-dev
DeskApp 1.5.0
Outlook 2016(64bit) KOE 1.6.282
Outlook 2010 -Zarafa 7.2.6

Log in to reply

Looks like your connection to Kopano Community Forum was lost, please wait while we try to reconnect.