OpenLDAP Configuration problem

Hi,

I installed ejabberd without modifying anything and added one user. I launched the client and connected successfully to ejabberd. I then went into the config file and added the LDAP information and as the debug log states I get a successful connection. When I then launches the client and try to authenticate I get no response whatsoever and it never authenticates (See my client log). I have tried so many different LDAP setting at this point I am not sure what is up and down anymore. Any advice on how to solve this would be much appreciated.

Thank you!
Petter

Server Information:
Ubuntu 12.04
ejabberd 2.1.11
openldap2-2.3.32-0.35.23

Client Information:
OSX 10.8.2
Messages 7.0.1 (3315)

--- Client log START ---
3/18/13 9:57:34.539 AM imagent[157]: [Warning] XMPPConnection: Error: Error Domain=XMPPErrorDomain Code=105 "The operation couldn’t be completed. (XMPPErrorDomain error 105.)"
3/18/13 9:57:34.548 AM imagent[157]: [Warning] SocketStream: error Error Domain=NSPOSIXErrorDomain Code=54 "The operation couldn’t be completed. Connection reset by peer" occurred on input stream
3/18/13 9:57:34.557 AM imagent[157]: [Warning] XMPPNodeStream: error Error Domain=NSPOSIXErrorDomain Code=54 "The operation couldn’t be completed. Connection reset by peer" occurred on input
3/18/13 9:57:34.567 AM imagent[157]: [Warning] XMPPConnection: Error: Error Domain=NSPOSIXErrorDomain Code=54 "The operation couldn’t be completed. Connection reset by peer"
--- Client log END ---

--- /var/log/ejabberd/ejabberd.log START ---
=INFO REPORT==== 2013-03-18 01:40:48 ===
I(<0.465.0>:ejabberd_listener:281) : (#Port<0.2175>) Accepted connection {{10,5,16,182},55384} -> {{10,5,16,185},5222}

=INFO REPORT==== 2013-03-18 01:40:48 ===
D(<0.527.0>:ejabberd_receiver:320) : Received XML on stream = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"

=INFO REPORT==== 2013-03-18 01:40:48 ===
D(<0.528.0>:ejabberd_c2s:1553) : Send XML on stream = [60,63,120,109,108,32,
118,101,114,115,105,
111,110,61,39,49,46,48,
39,63,62,60,115,116,
114,101,97,109,58,115,
116,114,101,97,109,32,
120,109,108,110,115,61,
39,106,97,98,98,101,
114,58,99,108,105,101,
110,116,39,32,120,109,
108,110,115,58,115,116,
114,101,97,109,61,39,
104,116,116,112,58,47,
47,101,116,104,101,114,
120,46,106,97,98,98,
101,114,46,111,114,103,
47,115,116,114,101,97,
109,115,39,32,105,100,
61,39,"3324488088",39,
32,102,114,111,109,61,
39,
"rb.mydomain.de",
39,[],
[" xml:lang='","en",
"'"],
62]

=INFO REPORT==== 2013-03-18 01:40:48 ===
D(<0.528.0>:ejabberd_c2s:1553) : Send XML on stream = <<"">>

=INFO REPORT==== 2013-03-18 01:40:48 ===
D(<0.528.0>:ejabberd_c2s:1553) : Send XML on stream = ""
--- /var/log/ejabberd/ejabberd.log END ---

--- LDAP CONFIGURATION START ---
%% Authentication using LDAP
%%
{auth_method, ldap}.
%%
%% List of LDAP servers:
{ldap_servers, ["ldapmaster.mydomain.de"]}.
%%
%% Encryption of connection to LDAP servers (LDAPS):
%%{ldap_encrypt, none}.
{ldap_encrypt, tls}.
%%
%% Port connect to LDAP server:
%%{ldap_port, 389}.
{ldap_port, 636}.
%%
%% LDAP manager:
{ldap_rootdn, "uid=root,dc=mydomain,dc=de"}.
%%
%% Password to LDAP manager:
{ldap_password, "********"}.
%%
%% Search base of LDAP directory:
{ldap_base, "dc=mydomain,dc=de"}.
%%
%% LDAP attribute that holds user ID:
{ldap_uids, [{"uid", "%u"}]}.
%%{ldap_uids, [{"uid", "%u@mydomain.de"}]}.
%%{ldap_uids, [{"uid", "%u"}]}.
%%
%% LDAP filter:
%%{ldap_filter, "(objectClass=shadowAccount)"}.
--- LDAP CONFIGURATION STOP ---

Syndicate content