[ejabberd] Ejabberd LDAP issues

Eric K iggiggitoo at gmail.com
Tue Mar 12 21:57:42 MSK 2013


I'm having trouble getting ejabberd to connect up to my openldap server. 
I'm able to run LDAP queries from the server using ldapsearch and the line

ldapsearch -b 'dc=domain,dc=com' -D 'cn=admin,dc=domain,dc=com' -h 
auth.domain.com -p 389 -x -W -ZZ

Which returns all of the information I expect, however when I use 
ejabberd's implementation, it spams the LDAP server with requests and 
starts posting this to the log:

=ERROR REPORT==== 2013-03-12 13:15:28 ===
E(<0.294.0>:eldap:1016) : LDAP connection failed:
** Server: auth.domain.com:389
** Reason: closed
** Socket options: [{packet,asn1},{active,true},{keepalive,true},binary]

=ERROR REPORT==== 2013-03-12 13:15:28 ===
E(<0.304.0>:eldap:1016) : LDAP connection failed:
** Server: auth2.domain.com:389
** Reason: closed
** Socket options: [{packet,asn1},{active,true},{keepalive,true},binary]

=WARNING REPORT==== 2013-03-12 13:15:28 ===
W(<0.306.0>:eldap:610) : LDAP server closed the connection: 
auth2.domain.com:389
In State: connecting

=ERROR REPORT==== 2013-03-12 13:15:28 ===
E(<0.305.0>:eldap:1016) : LDAP connection failed:
** Server: auth.domain.com:389
** Reason: closed
** Socket options: [{packet,asn1},{active,true},{keepalive,true},binary]

=WARNING REPORT==== 2013-03-12 13:15:28 ===
W(<0.304.0>:eldap:610) : LDAP server closed the connection: 
auth2.domain.com:389
In State: connecting

=ERROR REPORT==== 2013-03-12 13:15:28 ===
E(<0.294.0>:eldap:1016) : LDAP connection failed:
** Server: auth.domain.com:389
** Reason: closed
** Socket options: [{packet,asn1},{active,true},{keepalive,true},binary]

=WARNING REPORT==== 2013-03-12 13:15:28 ===
W(<0.305.0>:eldap:610) : LDAP server closed the connection: 
auth.domain.com:389
In State: connecting

Below is what I have for my ejabberd config:

{auth_method, [internal,ldap]}.
{ldap_servers, ["auth.domain.com", "auth2.domain.com"]}.
{ldap_encrypt, tls}.
{ldap_port, 389}.
{ldap_base, "ou=users,dc=domain,dc=com"}.
{ldap_uids, [{"uid"}]}.
{ldap_rootdn, "cn=admin,dc=domain,dc=com"}.
{ldap_password, "password"}.
{ldap_filter, 
"(&(objectClass=inetOrgPerson)(memberOf=cn=jabber,ou=login,ou=groups,dc=domain,dc=com))"}.

Can anyone help?

Thanks,
Eric


More information about the ejabberd mailing list