[ejabberd] Can not authenticate when one ldap server is down but the other one is working

Thomas Martin tmartincpp at gmail.com
Tue Oct 18 19:39:46 MSD 2011

Hi all,

I am having an issue with ejabberd and ldap authentication.

Here is my configuration:
%% List of LDAP servers:
{ldap_servers, ["ldap.mydomain.com", "ldap2.mydomain.com"]}.

Like you can see I am using two servers for redundancy.

If both servers are reachable all is working fine; but if one of this
server is down the ejabberd's authentication do not work anymore!

Repetitively in the logs I get:
=ERROR REPORT==== 2011-10-18 12:15:07 ===
E(<0.284.0>:eldap:997) : LDAP connection failed on ldap2.mydomain.com:636
Reason: econnrefused

Which is normal because ldap2.mydomain.com is really unreachable but I
can't authenticate to ejabberd even when if the other ldap is working.

Does anyone already experienced this issue?
I am using ejabberd 2.1.5.

Any advices will be really appreciate.

Thomas Martin

More information about the ejabberd mailing list