ejabberd - Comments for "LDAP auth, does MySQL storage get used?" https://www.ejabberd.im/node/5320 en Thanks for coming up with https://www.ejabberd.im/node/5320#comment-67251 <p>Thanks for coming up with this. It's just what I need currently, But the link you shares ( <noindex><a href="https://support.process-one.net/doc/display/MESSENGER/Using+ejabberd+with+MySQL+native+driver" title="https://support.process-one.net/doc/display/MESSENGER/Using+ejabberd+with+MySQL+native+driver" rel="nofollow" >https://support.process-one.net/doc/display/MESSENGER/Using+ejabberd+wit...</a></noindex> ) looks like its broken. Im heading in to configuring storage in my linux based storage machine (<noindex><a href="http://www.spectra.com/EMC/used-system/171/index.htm" title="http://www.spectra.com/EMC/used-system/171/index.htm" rel="nofollow" >http://www.spectra.com/EMC/used-system/171/index.htm</a></noindex><br /> ) hope I can get some good insights. Thanks!</p> Thu, 05 Jan 2017 14:46:10 +0000 shaunheatheridge comment 67251 at https://www.ejabberd.im Ok brilliant. Thanks for the https://www.ejabberd.im/node/5320#comment-58503 <p>Ok brilliant. Thanks for the info.</p> <p>I will leave it with mod_vcard_ldap for the time being.<br /> People are more likely to keep their details updated in their LDAP directory record (Zimbra).</p> <p>I'll look into mod_pubsub and post a separate thread if I need info on how to get started with it.</p> <p>Cheers, B</p> Thu, 05 Apr 2012 14:11:39 +0000 batfastad comment 58503 at https://www.ejabberd.im batfastad wrote: Does the https://www.ejabberd.im/node/5320#comment-58488 <div class="quote-msg"> <div class="quote-author"><em>batfastad</em> wrote:</div> <p>Does the MySQL database get "cleaned"? So if an LDAP user is deleted any associated records get removed from the MySQL storage?<br /> I guess not - with LDAP ejabberd won't know when a user will no longer be logging on.</p></div> <p>You are right.<br /> <div class="quote-msg"> <div class="quote-author"><em>batfastad</em> wrote:</div> <p>Is there a way to store presence changes/history in MySQL?<br /> I'd love to be able to build RSS feeds of user status changes for our intranet.</p></div> </p><p><noindex><a href="https://git.process-one.net/ejabberd/mainline/blobs/raw/v2.1.10/doc/guide.html#modpubsub" rel="nofollow" >mod_pubsub(_odbc)</a></noindex> implements the XEP-0060 that had been designed to "serve as the foundation for a wide variety of applications, including news feeds, content syndication, rich presence, geolocation, workflow systems, network management systems, and any other application that requires event notifications".<br /> <div class="quote-msg"> <div class="quote-author"><em>batfastad</em> wrote:</div> <p>mod_vcard_odbc doesn't seem to be storing the additional info I enter using Pidgin "Set User Info".<br /> I have mod_vcard_ldap also enabled to map the few limited bits of info from LDAP into a user's vcard so that could be the reason. Looking at ejabberd.log and the XMPP console it shows an "error code 405 not allowed" when I try and change that info.<br /> But it would be great if a user could store additional vcard info in MySQL that's not able to be written to LDAP.</p></div> </p><p>You have enabled two different modules that handle the same iq requests. Most possibly only one of them can only work in a time, and you can tell which one yourself if you change the order of them in your config. The functionality you need is not implemented, and you may need to make your custom vcard module to make it possible, or enable only the ODBC one and fill the ODBC database from LDAP using another means.</p> Wed, 04 Apr 2012 02:54:48 +0000 mikekaganski comment 58488 at https://www.ejabberd.im Ok that's excellent - it's https://www.ejabberd.im/node/5320#comment-58484 <p>Ok that's excellent - it's much easier for me to keep an eye on that information in MySQL and access it on our intranet.</p> <p>Does the MySQL database get "cleaned"? So if an LDAP user is deleted any associated records get removed from the MySQL storage?<br /> I guess not - with LDAP ejabberd won't know when a user will no longer be logging on.</p> <p>After a quick test I can confirm that mod_last_odbc has started storing the last seen times of LDAP users in MySQL.<br /> And rostergroups / rosterusers is updated when buddy requests are sent to external s2s users that aren't in our LDAP directory. And those DB records are removed when the buddy is removed from the client. Very cool!</p> <p>Is there a way to store presence changes/history in MySQL?<br /> I'd love to be able to build RSS feeds of user status changes for our intranet.</p> <p>mod_vcard_odbc doesn't seem to be storing the additional info I enter using Pidgin "Set User Info".<br /> I have mod_vcard_ldap also enabled to map the few limited bits of info from LDAP into a user's vcard so that could be the reason. Looking at ejabberd.log and the XMPP console it shows an "error code 405 not allowed" when I try and change that info.<br /> But it would be great if a user could store additional vcard info in MySQL that's not able to be written to LDAP.</p> Tue, 03 Apr 2012 11:51:31 +0000 batfastad comment 58484 at https://www.ejabberd.im batfastad wrote: ...do the https://www.ejabberd.im/node/5320#comment-58483 <div class="quote-msg"> <div class="quote-author"><em>batfastad</em> wrote:</div> <p>...do the _odbc modules (eg: mod_last_odbc etc) only work if you are using MySQL for the storage of users?</p></div> <p>No<br /> <div class="quote-msg"> <div class="quote-author"><em>batfastad</em> wrote:</div> <p>Could I store any data in MySQL if my users are all stored in LDAP?</p></div> </p><p>Yes</p> Tue, 03 Apr 2012 04:59:26 +0000 mikekaganski comment 58483 at https://www.ejabberd.im