[ejabberd] ejabberd with LDAP and MySQL

Marcelo Terres mhterres at gmail.com
Tue Oct 2 23:28:27 MSD 2007

If somebody has the same problem, here is the solution:

In ejabberd.cfg put this lines:

{auth_method, odbc}.
{odbc_server, {mysql, "", "ejabberd_db", "ejabberd_username",

{hosts, ["yourhost.com.br"]}.

{host_config, "yourhost.com.br", [{auth_method, [odbc,
ldap]},{ldap_servers, [""]},{ldap_uidattr, "uid"},{ldap_base,
"ou=Users,dc=yourhost,dc=com,dc=br"},{ldap_password, "password"} ]}.

This way, ejabberd will authentica in mysql and use mysql for storage.


On 10/2/07, Marcelo Terres <mhterres at gmail.com> wrote:
> Hello.
> I have a doubt.
> Is it possible to authenticate the users using LDAP and use MySQL to
> store roster, offline, vcard and the other things ?
> Thanks in advance.
> --
> Marcelo H. Terres
> mhterres at gmail.com

Marcelo H. Terres
mhterres at gmail.com

More information about the ejabberd mailing list