ejabberd - Comments for "Using LDAP for auth and MSSQL for roster storage" https://www.ejabberd.im/node/3162 en Thanks -o) https://www.ejabberd.im/node/3162#comment-53871 <p>Thanks -o)</p> Mon, 22 Dec 2008 12:36:08 +0000 dray comment 53871 at https://www.ejabberd.im That was only in my case. https://www.ejabberd.im/node/3162#comment-53870 <div class="quote-msg"> <div class="quote-author"><em>dray</em> wrote:</div> <p>But what kind of interest using MSSQL if the only updated database table is dbo.rosterusers ?</p></div> <p>I mean: if using the default modules, and the only *_odbc module is mod_roster_odbc, then all data is stored in Mnesia except rosters. This is the test that I made.</p> <p>In your case, as you use several *_odbc modules, most of the information in your server will be stored in the SQL database.</p> Mon, 22 Dec 2008 11:43:03 +0000 mfoss comment 53870 at https://www.ejabberd.im Thanks a lot : I've just https://www.ejabberd.im/node/3162#comment-53867 <p>Thanks a lot : I've just added the server IP address ans it's working fine :</p> <p>{odbc_server, "Server=192.168.0.254;DSN=ejabberd;UID=ejabberd;PWD=*********"}.</p> <p>But what kind of interest using MSSQL if the only updated database table is dbo.rosterusers ?</p> Mon, 22 Dec 2008 08:26:27 +0000 dray comment 53867 at https://www.ejabberd.im Check logs. Simple test to know where is data stored https://www.ejabberd.im/node/3162#comment-53862 <div class="quote-msg"> <div class="quote-author"><em>dray</em> wrote:</div> <p>I'm having quite the same problems : I'd like ldap authentication for users and ODBC MS SQL Server for logging.<br /> LDAP authentication = OK but nothing is logged in my SQL "EJABBERD" database.</p> <p>My DSN = OK (tested, no error)</p> <p>My ejabberd.cfg file (part of) :</p> <p>------------------------------</p> <p>{auth_method, ldap}.</p> <p>{ldap_servers, ["10.6.169.88"]}.<br /> {ldap_port, 389}.<br /> {ldap_uids, [{"sAMAccountName","%u"}]}.<br /> {ldap_filter, "(&amp;(objectClass=user)(objectCategory=person))"}.<br /> {ldap_base, "OU=Tsung_Users,DC=COMMUNDEV-EVO,DC=FR"}.<br /> {ldap_rootdn, "CN=EJABBERD,CN=Users,DC=COMMUNDEV-EVO,DC=FR"}.<br /> {ldap_password, "*********"}. </p> <p>{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=********"}.</p> <p>{modules,<br /> [<br /> {mod_roster_odbc, []},<br /> ...<br /> ]}. </p></div> <p>I tried a similar setup with ejabberd trunk SVN with MySQL; everything worked correctly.</p> <p>You should check ejabberd.log and sasl.log when ejabberd starts and you add a contact, maybe they show an error message about trouble connecting to the SQL database.</p> <p>If you use mod_roster, the contacts should be stored in the table 'roster' of the internal database. If you use mod_roster_odbc, the contacts should be stored in the table 'rosterusers' in the database you specified.</p> <p>You can try this:</p> <ol> <li>Check the size of roster table of the internal database. You can see the size in the ejabberd Web Admin -&gt; Nodes -&gt; your node -&gt; Database </li><li>Also check the size of the rosterusers table in your SQL database. </li><li>Now login to a jabber account, and add any contact, for example testcontact@localhost or similar </li><li>Finally, check again the size of the tables in internal and SQL. This may give you an idea of where is the roster contacts stored. </li></ol> Sun, 21 Dec 2008 22:09:46 +0000 mfoss comment 53862 at https://www.ejabberd.im LDAP + SQL Server https://www.ejabberd.im/node/3162#comment-53842 <p>I'm having quite the same problems : I'd like ldap authentication for users and ODBC MS SQL Server for logging.<br /> LDAP authentication = OK but nothing is logged in my SQL "EJABBERD" database.</p> <p>My DSN = OK (tested, no error)</p> <p>My ejabberd.cfg file (part of) :</p> <p>------------------------------</p> <p>%%<br /> %% Authentication using LDAP<br /> %%<br /> {auth_method, ldap}.<br /> %%<br /> %% List of LDAP servers:<br /> {ldap_servers, ["10.6.169.88"]}.<br /> %% LDAP Server port to use<br /> {ldap_port, 389}.<br /> %% LDAP attribute that holds user ID:<br /> {ldap_uids, [{"sAMAccountName","%u"}]}.<br /> {ldap_filter, "(&amp;(objectClass=user)(objectCategory=person))"}.<br /> %%<br /> %% Search base of LDAP directory:<br /> {ldap_base, "OU=Tsung_Users,DC=COMMUNDEV-EVO,DC=FR"}.<br /> %%<br /> %% LDAP manager:<br /> {ldap_rootdn, "CN=EJABBERD,CN=Users,DC=COMMUNDEV-EVO,DC=FR"}.<br /> %%<br /> %% Password to LDAP manager:<br /> {ldap_password, "*********"}. </p> <p>%%<br /> %% ODBC compatible or MSSQL server:<br /> %%<br /> {odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=********"}.</p> <p>%%<br /> %% Modules enabled in all ejabberd virtual hosts.<br /> %%<br /> {modules,<br /> [<br /> {mod_adhoc, []},<br /> {mod_announce, [{access, announce}]}, % requires mod_adhoc<br /> {mod_caps, []},<br /> {mod_configure,[]}, % requires mod_adhoc<br /> {mod_disco, []},<br /> %%{mod_echo, [{host, "echo.SRV-EJABBERD"}]},<br /> {mod_http_bind,[]},<br /> %%{mod_http_fileserver, [{docroot, "C:\\Program Files\\ejabberd-2.0.2_2\\www"}]},<br /> {mod_irc, []},<br /> {mod_last_odbc, []},<br /> {mod_muc, [<br /> %%{host, "conference.@HOST@"},<br /> {access, muc},<br /> {access_create, muc},<br /> {access_persistent, muc},<br /> {access_admin, muc_admin}<br /> ]},<br /> %%{mod_muc_log,[]},<br /> {mod_offline_odbc, []},<br /> {mod_privacy, []},<br /> {mod_private, []},<br /> %%{mod_proxy65,[]},<br /> {mod_pubsub, [ % requires mod_caps<br /> {access_createnode, pubsub_createnode},<br /> {plugins, ["default", "pep"]}<br /> ]},<br /> {mod_register, [<br /> %%<br /> %% After successful registration, the user receives<br /> %% a message with this subject and body.<br /> %%<br /> {welcome_message, {"Bienvenue !",<br /> "Bienvenue sur le serveur JABBER SRV-EJABBERD."}},</p> <p> %%<br /> %% When a user registers, send a notification to<br /> %% these Jabber accounts.<br /> %%<br /> %%{registration_watchers, ["admin1@example.org"]},</p> <p> {access, register}<br /> ]},<br /> {mod_roster_odbc, []},<br /> %%{mod_service_log,[]},<br /> {mod_shared_roster,[]},<br /> %%{mod_stats, []},<br /> {mod_time, []},<br /> {mod_vcard, []},<br /> {mod_vcard_ldap,<br /> [{ldap_vcard_map,<br /> [{"NICKNAME", "%u", []},<br /> {"GIVEN", "%s", ["givenName"]},<br /> {"MIDDLE", "%s", ["initials"]},<br /> {"FAMILY", "%s", ["sn"]},<br /> {"FN", "%s", ["displayName"]},<br /> {"EMAIL", "%s", ["mail"]},<br /> {"ORGNAME", "%s", ["company"]},<br /> {"ORGUNIT", "%s", ["department"]},<br /> {"CTRY", "%s", ["c"]},<br /> {"LOCALITY", "%s", ["l"]},<br /> {"STREET", "%s", ["streetAddress"]},<br /> {"REGION", "%s", ["st"]},<br /> {"PCODE", "%s", ["postalCode"]},<br /> {"TITLE", "%s", ["title"]},<br /> {"URL", "%s", ["wWWHomePage"]},<br /> {"DESC", "%s", ["description"]},<br /> {"TEL", "%s", ["telephoneNumber"]}]},<br /> {ldap_search_fields,<br /> [{"Utilisateur", "%u"},<br /> {"Prénom", "givenName"},<br /> {"Nom", "sn"},<br /> {"Email", "mail"},<br /> {"Société", "company"},<br /> {"Service", "department"},<br /> {"Mission principale", "title"},<br /> {"Description", "description"},<br /> {"Téléphone", "telephoneNumber"}]},<br /> {ldap_search_reported,<br /> [{"Nom complet", "FN"},<br /> {"Utilisateur", "NICKNAME"},<br /> {"Email", "EMAIL"}]}<br /> ]},<br /> {mod_version, []}<br /> ]}.</p> Tue, 16 Dec 2008 15:45:25 +0000 dray comment 53842 at https://www.ejabberd.im odbc https://www.ejabberd.im/node/3162#comment-53461 <p>I had ODBC all setup wrong. I can now connect to the sql server using iodbctest put not from erl with the same connection string.</p> Wed, 30 Jul 2008 09:22:38 +0000 cselph comment 53461 at https://www.ejabberd.im