[ejabberd] LDAP authentication and MySQL roster storage

Dubromez Matthieu matthieu.dubromez at insa-lyon.fr
Thu Nov 2 16:24:14 MSK 2006


I put the ldap parameters in the host_config section and now it works!

However I have another issue about mod_vcard_ldap. Indeed when I try to retrieve
 my VCard, I get this error in the ejabberd log :

** Reason for termination ==
** {'function not exported',[{eldap_utils,
                                 case_insensitive_match,
                                 ["NICKNAME","NICKNAME"]},
                             {lists,'-filter/2-lc$^0/1-0-',2},
                             {mod_vcard_ldap,map_vcard_attr,4},
                             {mod_vcard_ldap,
                                 '-ldap_attributes_to_vcard/3-fun-0-',
                                 4},
                             {lists,map,2},
                             {mod_vcard_ldap,ldap_attributes_to_vcard,3},
                             {mod_vcard_ldap,handle_call,3},
                             {gen_server,handle_msg,6}]}

I just put {mod_vcard_ldap,[]}, in the module section. Did I forget something?
Thanks for your help,
Matthieu Dubromez

Selon Michel Peterson <cooldown at gmail.com>:

> I think this should get you on the right track:
> http://www.jabber.ru/bugzilla/show_bug.cgi?id=292
> 
> On 10/30/06, Dubromez Matthieu <matthieu.dubromez at insa-lyon.fr> wrote:
> >
> > Hello all,
> >
> > I have an issue using MySQL roster storage. I use LDAP to authenticate
> > users and
> > I want to store their rosters in a MySQL database, but I got this error
> > when a
> > user add a contact in his roster :
> >
> > =ERROR REPORT==== 30-Oct-2006::16:50:19 ===
> > E(<0.279.0>:ejabberd_hooks:172): {noproc,
> >                                      {gen_server,
> >                                          call,
> >
> > ['ejabberd_odbc_sup_public.example.org',
> >                                           which_children,
> >                                           infinity]}}
> > running hook: {roster_out_subscription,
> >                   ["toto",
> >                    "public.example.org",
> >                    {jid,"titi",
> >                         "public.example.org",
> >                         [],
> >                         "titi",
> >                         "public.example.org",
> >                         []},
> >                    subscribe]}
> >
> > Here is the config I use :
> >
> > ...
> >
> > {host_config, "public.example.org", [{odbc_server, {mysql, "localhost",
> > "ejabberd", "root", "toto"}}]}.
> >
> > ...
> >
> > {modules,
> > [
> >   {mod_roster_odbc, []},
> >
> > ...
> >
> > What is wrong in my config file?
> >
> > Thanks for your help,
> > Matthieu Dubromez
> > _______________________________________________
> > ejabberd mailing list
> > ejabberd at jabber.ru
> > http://lists.jabber.ru/mailman/listinfo/ejabberd
> >
> 





More information about the ejabberd mailing list