ldap configuration not working

Hello,

i tried to run ejabberd on ubuntu 12.04 LTS server with openldap for my eve online (mmorpg) addiction.
I followed the guide on this site.

This is the details:

ejabberd 2.1.10-2ubuntu1
openldap 2.4.28-1.1ubuntu4

I created a custom schema on the openldap server which is essentially a very basic setup:

http://zzindustries.com/schema.jpg

I can use the rootdn "cn=admin,dc=zzindustries,dc=com" with the password to connect with JXplorer and browse the ldap directory with write access and read access.
The id to query for the user is "charName" the password is saved in "userPassword" as defined by the other objectClasses (don't know which one defines it atm).

Therefore i thought my ejabberd.cfg should look like this:

{auth_method, ldap}.
{ldap_servers, ["188.40.118.181"]}.
{ldap_port, 389}.
{ldap_rootdn, "cn=admin,dc=zzindustries,dc=com"}.
{ldap_password, "passiset"}.
{ldap_base, "ou=people,dc=zzindustries,dc=com"}.
{ldap_uids, "charName"}.
{ldap_filter, "(objectClass=eveAccount)"}.

I dont see any errors in the ejabberd startup log file.

However if i connect with any client i just get an auth fail. The log says:

=INFO REPORT==== 2012-05-11 15:39:19 ===
I(<0.554.0>:ejabberd_c2s:649) : ({socket_state,tls,{tlssock,#Port<0.2221>,#Port<0.2223>},<0.553.0>}) Failed authentication for testuser@zzindustries.com

Ramping up the debug level didnt provide (me at least) with more insight.

When i checked tcpdump on lo and eth0 it seems that ejabberd is not even connecting to openldap. Running slapd in max debug mode seems to confirm this.

Apparently i have a "doh" somewhere in here but i can't see it :)

im an idiot. {ldap_uids,

im an idiot.

{ldap_uids, [{"charName", "%u"}]}.

did the trick :)

Syndicate content