[ejabberd] auth_method: ldap and several servers

Dmitry Melekhov dm at belkam.com
Mon Mar 6 14:44:05 MSK 2017


Hello!


I'd like to use serveral ldap servers in ejabberd 16.06, namely two.

When both servers are available, then everything is fine, but of of them 
is offline then

looks like ejabberd randomly chooses one server from list and never 
tries another:

2017-03-06 15:40:44.758 [info] <0.477.0>@ejabberd_listener:accept:333 
(#Port<0.7278>) Accepted connection ::FFFF:192.168.22.229:34996 -> 
::FFFF:192.168.222.32:5222
2017-03-06 15:42:07.117 [error] <0.373.0>@eldap:connect_bind:1096 LDAP 
connection failed:
** Server: terak.belkam.com:389
** Reason: etimedout
** Socket options: 
[{packet,asn1},{active,true},{keepalive,true},{send_timeout,30000},binary]
2017-03-06 15:42:07.118 [error] <0.375.0>@eldap:connect_bind:1096 LDAP 
connection failed:
** Server: terak.belkam.com:389
** Reason: etimedout


Could you tell me is it possible to specify some connection timeout, so 
ejabberd will switch to second ldap server?


Thank you!



More information about the ejabberd mailing list