ejabberd - Comments for "LDAP and ODBC same time" https://www.ejabberd.im/node/2957 en Example config https://www.ejabberd.im/node/2957#comment-52157 <p>I don't know if the configuration I propose will work, but I hope it does :)</p> <p>If you want LDAP authentication, and storage of offline messages in ODBC, try:</p> <pre> {hosts, ["abc.com"]}. %% Definition of LDAP server {ldap_servers, ["server.abc.com"]}. {ldap_uids, [{"mail", "%u@abc.com"}]}. {ldap_base, "CN=Users,dc=abc,dc=com"}. {ldap_rootdn, "CN=LDAPUSER,CN=Users,dc=xxxxx,dc=com"}. {ldap_password, "xxxxxxxxx"}. {ldap_uidattr, "sAMAccountName"}. {ldap_filter, "(mail=*)"}. %% Definition of ODBC server {odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}. %% Use LDAP authentication {host_config, "abc.com", [{auth_method, [ldap]}]}. {modules, [ ... {mod_offline_odbc, []}, %% Use ODBC storage for offline messages ... ] }. </pre> Fri, 11 Apr 2008 23:06:07 +0000 mfoss comment 52157 at https://www.ejabberd.im