[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, "127.0.0.1", "ejabberd_db", "ejabberd_username",
"password"}}.

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

{host_config, "yourhost.com.br", [{auth_method, [odbc,
ldap]},{ldap_servers, ["127.0.0.1"]},{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.

Regards,

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