[ejabberd] LDAP Authentication

Theo Cushion theo at jivatechnology.com
Fri Nov 13 19:03:26 MSK 2009


I've discovered in /var/log/ejabberd/erlang.log

=CRASH REPORT==== 13-Nov-2009::16:04:51 ===
   crasher:
     pid: <0.248.0>
     registered_name: 'ejabberd_auth_ldap_edge-ejabberd.local'
     error_info: {badarg,[{erlang,'++',[none,")"]},
                           {ejabberd_auth_ldap,parse_options,1},
                           {ejabberd_auth_ldap,init,1},
                           {gen_server,init_it,6},
                           {proc_lib,init_p,5}]}
     initial_call: {gen,init_it,
                       [gen_server,
                        <0.214.0>,
                        <0.214.0>,
                        {local,'ejabberd_auth_ldap_edge- 
ejabberd.local'},
                        ejabberd_auth_ldap,
                        "edge-ejabberd.local",
                        []]}
     ancestors: [ejabberd_sup,<0.36.0>]
     messages: []
     links: [<0.214.0>]
     dictionary: []
     trap_exit: false
     status: running
     heap_size: 987
     stack_size: 21
     reductions: 2283
   neighbours:

So it seems a bad argument is responsible. Any ideas what I'm  
specifying wrong?

On 13 Nov 2009, at 14:20, Theo Cushion wrote:

> Hi
>
> I've been moving my system across to LDAP. However, ejabberd (2.1.0)  
> never seems to even initiate an LDAP connection to my server (as  
> observed from the logs on the LDAP server) - and no users are  
> authenticated. There is nothing in the log (level 5) to suggest that  
> LDAP is even being loaded.
>
> My config is:
>
> {auth_method, ldap}.
> {ldap_servers,         ["edge-ejabberd.local"] }.
> {ldap_port,            389 }.
> {ldap_base,            "ou=users,dc=edge-ejabberd,dc=local" }.
> {ldap_rootdn,          "cn=admin,dc=edge-ejabberd,dc=local" }.
> {ldap_password,        "foobar" }.
> {ldap_uids,            [{"uid", "%u"}] }.
> {ldap_filter,          none }.
> {ldap_local_filter,    undefined }.
>
> This is an except from the log as a user tries to connect:
>
> =INFO REPORT==== 2009-11-13 14:20:43 ===
> I(<0.306.0>:ejabberd_listener:229) : (#Port<0.389>) Accepted  
> connection {{192,168,1,120},59979} -> {{192,168,1,136},5222}
>
> =INFO REPORT==== 2009-11-13 14:20:43 ===
> D(<0.309.0>:ejabberd_receiver:320) : Received XML on stream = "<?xml  
> version=\"1.0\"?>\n<stream:stream xmlns:stream=\"http://etherx.jabber.org/streams 
> \" version=\"1.0\" xmlns=\"jabber:client\" to=\"edge-ejabberd.local 
> \" xml:lang=\"en\" xmlns:xml=\"http://www.w3.org/XML/1998/namespace 
> \" >\n"
>
> =INFO REPORT==== 2009-11-13 14:20:43 ===
> D(<0.310.0>:ejabberd_c2s:1376) : Send XML on stream = "<?xml  
> version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' 
>  id='1746798357' from='edge-ejabberd.local' version='1.0'  
> xml:lang='en'>"
>
> =INFO REPORT==== 2009-11-13 14:20:43 ===
> D(<0.310.0>:ejabberd_c2s:1376) : Send XML on stream =  
> "<stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp- 
> sasl'><mechanism>PLAIN</mechanism></mechanisms></stream:features>"
>
> =INFO REPORT==== 2009-11-13 14:20:43 ===
> D(<0.309.0>:ejabberd_receiver:320) : Received XML on stream = "<auth  
> xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\" mechanism=\"PLAIN\"  
> >AHRoZW8uY3VzaGlvbgBmcmVk</auth>"
>
> =INFO REPORT==== 2009-11-13 14:20:43 ===
> I(<0.310.0>:ejabberd_c2s:585) :  
> ({socket_state,gen_tcp,#Port<0.389>,<0.309.0>}) Failed  
> authentication for theo.cushion at edge-ejabberd.local
>
> =INFO REPORT==== 2009-11-13 14:20:43 ===
> D(<0.310.0>:ejabberd_c2s:1376) : Send XML on stream = "<failure  
> xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><not-authorized/></failure>"
>
> There is nothing else in the log during startup to suggest a module  
> is not being loaded correctly.
>
> What am I doing wrong?
>
> Thanks
>
> Theo
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20091113/de35338d/attachment-0001.html>


More information about the ejabberd mailing list