Problem with LDAPS

Hi all,

I'm trying to use Ejabberd 1.1.3 with LDAPS authentication but I'm having a big problem. I've applied the LDAPS path from here and I've modified the port number in mod_vcard_ldap.erl and ejabberd_auth_ldap.erl.

My ldap server doesn't recieve any connection and the Ejabberd server is crashing with an error. I've looked for this error in Google and the Forums but I haven't found anything.

My config file looks like this:

{auth_method, ldap}.
{ldap_servers, ["myhost1.mydomain.com"]}.    % List of LDAP servers
{ldap_uidattr, "cn"}.            % LDAP attribute that holds user ID
{ldap_base, "ou=Users,dc=mydomain,dc=net"}. % Search base of LDAP directory
{ldap_rootdn, "cn=admin,dc=mydomain,dc=net"}. % LDAP manager
{ldap_password, "mypassword"}. % Password to LDAP manager

{hosts, ["myhost2.mydomain.com"]}.

The domain suffix from the ldap server name and hsot name are different from the ldap base domain suffix.

The error log is repeated several times and look like this one:

=ERROR REPORT==== 26-Feb-2007::12:39:47 ===
** State machine 'eldap_ejabberd_auth_ldap_myhost2.mydomain.com' terminating
** Last event in was timeout
** When State == connecting
**      Data  == {eldap,3,
                        ["myhost.mydomain.com"],
                        null,
                        636,
                        null,
                        "cn=admin,dc=mydomain,dc=net",
                        "mypassword",
                        0,
                        #Fun,
                        undefined,
                        {dict,0,
                              16,
                              16,
                              8,
                              80,
                              48,
                              {[],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               [],
                               []},
                              {{[],
                                [],
                                [],
                                [],
                                [],
                                [],
                                [],
                                [],
                                [],
                                [],
                                [],
                                [],
                                [],
                                [],
                                [],
                                []}}},
                        0,
                        true}
** Reason for termination =
** {{badmatch,{error,eoptions}},
    [{eldap,do_connect,3},
     {eldap,connect_bind,1},
     {eldap,connecting,2},
     {gen_fsm,handle_msg,7},
     {proc_lib,init_p,5}]}

I hope someone could help me with this, because I'm a little lost. Thanks.

Syndicate content