ejabberd - Comments for "Roster management advice" https://www.ejabberd.im/node/2023 en mod_ctlextra delete-and-push-shared https://www.ejabberd.im/node/2023#comment-43454 <div class="quote-msg"> <div class="quote-author"><em>badlop</em> wrote:</div> <p>[...]</p> <p>Well, you can destroy all rosters at 3:00 AM in the morning: clean the Mnesia table 'roster'. It's easy to add a command to mod_ctlextra to do this.<br /> It's also possible to improve the pushroster command to first remove all roster items for the user.</p> <p>[...]</p> <p>I don't understand the meaning of one-off. </p></div> <p>Oh, sorry. I meant writing a standalone .beam or whatever to do the custom roster management rather than tinker inside of ejabberd_ctl, but it sounds like ejabberdctl modifications are the way to go.</p> <div class="quote-msg"> <div class="quote-author"><em>badlop</em> wrote:</div> <p>I don't know what exact problems you are mentioning, so I don't know if they are fixed. ;) If shared-roster works for you, you will save a lot of time in setting mod_ctlextra+roster text files. So let's investigate this possibility before. </p></div> <p>I was referring to the presence stuff at <noindex><a href="http://www.jabber.ru/bugzilla/show_bug.cgi?id=223" title="http://www.jabber.ru/bugzilla/show_bug.cgi?id=223" rel="nofollow" >http://www.jabber.ru/bugzilla/show_bug.cgi?id=223</a></noindex>. There was another bug I saw while trolling around, involving a user modifying a shared roster from within their client -- but I can't find a reference to that one now, of course. ;)</p> <p>I'd far prefer doing the 'right thing' and go down the shared roster path (assuming the above is no longer a problem), and potentially adding a command to mod_ctlextra like 'push-sharedroster' that wipes current shared roster data, and repopulates it from a text file, along with optional Nicknames. Then I can setup a 3am job that polls our LDAP, builds the file (Employees arranged by their respective department), and runs the ejabberdctl command. Employees might actually like organizing their rosters for once instead of getting them blown away each night. :)</p> <p>Thanks for the response!</p> Thu, 16 Aug 2007 21:18:37 +0000 Mahlon comment 43454 at https://www.ejabberd.im Partial answers https://www.ejabberd.im/node/2023#comment-42159 <div class="quote-msg"> <div class="quote-author"><em>Mahlon</em> wrote:</div> <p> 1) Looks like pushroster-all appends to the rosters. How can I purge the roster before pushing a new one?</p></div> <p>Well, you can destroy all rosters at 3:00 AM in the morning: clean the Mnesia table 'roster'. It's easy to add a command to mod_ctlextra to do this.</p> <p>It's also possible to improve the pushroster command to first remove all roster items for the user.</p> <div class="quote-msg"> <div class="quote-author"><em>Mahlon</em> wrote:</div> <p> 2) Can I include full names somewhere in the roster file? Our users have been used to them with our jabberd2 manipulations, it would be 'weird' to go to JIDs for them.</p></div> <p>Yes, probably improving the command.</p> <div class="quote-msg"> <div class="quote-author"><em>Mahlon</em> wrote:</div> <p> 3) Am I even headed in the right direction with your additions to ejabberd_ctl? Would this sort of action be better suited as a erlang 'one-off'?</p></div> <p>I don't understand the meaning of one-off.</p> <div class="quote-msg"> <div class="quote-author"><em>Mahlon</em> wrote:</div> <p> 4) Or is all this shared roster madness fixed in trunk, including namespace stuff? (I didn't see that it was, but thought I'd ask.)</p></div> <p>I don't know what exact problems you are mentioning, so I don't know if they are fixed. ;) If shared-roster works for you, you will save a lot of time in setting mod_ctlextra+roster text files. So let's investigate this possibility before.</p> Tue, 14 Aug 2007 18:06:01 +0000 mfoss comment 42159 at https://www.ejabberd.im