ejabberd - Comments for "Adding lots of shared rosters with scripts?" https://www.ejabberd.im/node/513 en Re https://www.ejabberd.im/node/513#comment-57401 <div class="quote-msg"> <div class="quote-author"><em>aliasnexus0</em> wrote:</div> <p>the command you listed as an example does not work with mod_admin_extra.</p></div> <p>I have tested it now, and works correctly.</p> Fri, 27 May 2011 15:27:57 +0000 mfoss comment 57401 at https://www.ejabberd.im I believe the name parameter https://www.ejabberd.im/node/513#comment-57396 <p>I believe the name parameter for srg_create is the only one needing blank spaces support. I saw above that you implemented it for mod_clextra, but the command you listed as an example does not work with mod_admin_extra.</p> <p>Thanks for your help.</p> Thu, 26 May 2011 21:21:13 +0000 aliasnexus0 comment 57396 at https://www.ejabberd.im Re https://www.ejabberd.im/node/513#comment-57394 <div class="quote-msg"> <div class="quote-author"><em>aliasnexus0</em> wrote:</div> <p>Is the blank spaces functionally present in the mod_admin_extra module across all of the sgr_* commands? If not, would it be difficult to implement?</p></div> <p>What argument in other srg command do you need to support spaces?</p> <p>Anyway, notice that you can run the commands of mod_admin_extra using XML-RPC, if you install ejabberd_xmlrpc, or using HTTP calls, if you install mod_rest. Those two transport methods probably support blankspaces and are more flexible regarding encodings than the shell ejabberdctl.</p> Thu, 26 May 2011 19:55:25 +0000 mfoss comment 57394 at https://www.ejabberd.im Is the blank spaces https://www.ejabberd.im/node/513#comment-57391 <p>Is the blank spaces functionally present in the mod_admin_extra module across all of the sgr_* commands? If not, would it be difficult to implement?</p> <p>We are in the process of writing scripts to monitor LDAP group and update the Jabber Roster accordingly. We are doing this instead of using mod_shared_roster_ldap because mod_shared_roster_ldap, to my knowledge, does not offer the displayed groups functionality that mod_shared_roster does.</p> Wed, 25 May 2011 16:59:34 +0000 aliasnexus0 comment 57391 at https://www.ejabberd.im Excellent https://www.ejabberd.im/node/513#comment-51664 <p>Just svn'd and works great! Thanks for the clarification of Name vs GroupID also. While I'm still going to need to write a converter to make the original GroupID's compliant with the module it'll ease some of the complaints from the users in regards to the SR naming.</p> Mon, 21 Jan 2008 15:40:06 +0000 tlaramie comment 51664 at https://www.ejabberd.im Improvement: Name with blankspaces https://www.ejabberd.im/node/513#comment-51650 <p>A SRG has those fields: GroupID, Name, Description, Members, Displayed. The only field that anybody could really need to contain blankspaces is Name, because that is the only field shown to the final users, right? All the other fields are only seen by the admin, and he can use _ there.</p> <p>I've improved the srg-create command in mod_ctlextra to allow blankspaces in the Name field. Check SVN. </p> <p>To determine when the Name starts and ends, the characters " and ' are used. For example:</p> <pre>ejabberdctl srg-create group1 jabber.example.org "'Group number 1'" this_is_group_1 group1</pre> Sun, 20 Jan 2008 12:39:11 +0000 mfoss comment 51650 at https://www.ejabberd.im Spaces in SRG Name? https://www.ejabberd.im/node/513#comment-51623 <p>Maybe I'm missing something but it doesn't appear that the other SRG elements (Group &amp; Name) can have spaces either. I've tried single &amp; double quotes as well as HTML entities (%20) but no go e.g<br /> srg-create 'Test Group' testdomain.com 'Test Domain' test.description 'Test Domain'<br /> srg-create "Test Group" testdomain.com "Test Domain" test.description "Test Domain"<br /> srg-create Test%20Group testdomain.com Test%20Domain test.description Test%20Domain<br /> The first two attempts results in an 'error' with the runtime flags for ejabberctl being displayed. The 3rd works but shows the HTML element in the web interface and clients, cannot be accessed via the web interface for manual changes and generates errors for some clients when connecting.<br /> Awesome addition regardless though.</p> Tue, 15 Jan 2008 09:41:51 +0000 tlaramie comment 51623 at https://www.ejabberd.im Perfect! https://www.ejabberd.im/node/513#comment-1108 <p>That'll work great! I wouldn't even consider those limitations. =)</p> <p>Thanks again so much for this!</p> <p>--Marc</p> Sun, 27 Nov 2005 18:34:37 +0000 msmith comment 1108 at https://www.ejabberd.im Done. It was easy with some limitations https://www.ejabberd.im/node/513#comment-1106 <p>Done. It was easy if some limitations are imposed:</p> <ul> <li>You must specify all the options. In fact, the options aren't optional. </li><li>You can't specify a Description with spaces. It must be a word, or use '_'. </li><li>You can only specify one group to be displayed. And there's no way to add more using ejabberdctl-extra. I hope this isn't a problem. </li></ul> Sun, 27 Nov 2005 14:27:37 +0000 mfoss comment 1106 at https://www.ejabberd.im I know beggars can't be https://www.ejabberd.im/node/513#comment-1105 <p>I know beggars can't be choosers, but would it be difficult to make it so you can also add/remove shared roster groups with ejabberdctl? The patch works great for adding/removing users from existing groups, but in my particular case, there will be lots of SRGs (close to 1,000) all with different users in each group.</p> <p>If its a lot to do, don't worry about it. Or if you don't feel like doing it all, don't worry about it. =)</p> <p>I can find a work-around if not.</p> <p>Thanks again for all your help.</p> <p>--Marc</p> Sun, 27 Nov 2005 02:38:28 +0000 msmith comment 1105 at https://www.ejabberd.im Thanks! https://www.ejabberd.im/node/513#comment-1098 <p>Thank you so much! I'll let ya know how everything works when I get a little closer to fully implementing this.</p> <p>Thanks again.</p> <p>--Marc</p> Thu, 24 Nov 2005 00:34:38 +0000 msmith comment 1098 at https://www.ejabberd.im Done https://www.ejabberd.im/node/513#comment-1097 <p>Done. </p> <p>Now there are two new commands: add user@server to a SRG, and remove. It just needed 2 erlang lines of code (and a lot more for message and error reporting).</p> <p>Note that ejabberdctl takes one second aprox for every call, so a batch process to add 1000 users can be a little slow. But it works :)</p> Wed, 23 Nov 2005 20:02:19 +0000 mfoss comment 1097 at https://www.ejabberd.im Can that feature be requested? https://www.ejabberd.im/node/513#comment-1096 <p>"Another command to add a user to a SRG could be added."</p> <p>Can I request the SRG feature be added to ejabberdctl-extra? =)</p> Wed, 23 Nov 2005 18:17:33 +0000 msmith comment 1096 at https://www.ejabberd.im Yes, 'ejabberdctl-extra' https://www.ejabberd.im/node/513#comment-1093 <p>Yes, the currently provided commands by 'ejabberdctl-extra' modify the database adding new items to the users roster. Another command to add a user to a SRG could be added.</p> <p>ACLpopulateSR adds users to a Shared Roster Group when the server is started or new accounts created. It may not work with LDAP since it queries for registered accounts (stored on LDAP), instead of asking for used accounts (that are stored on Mnesia). It could be modified to work with LDAP.</p> <p>mod_xmlrpc includes only some example calls. It can be added another, for example: 'add_user_to_srg, username, server, shared_roster_group'.</p> Wed, 23 Nov 2005 09:07:42 +0000 mfoss comment 1093 at https://www.ejabberd.im ejabberdctl-extra? https://www.ejabberd.im/node/513#comment-1092 <p>ejabberdctl-extra will only do "normal" rosters (not shared), correct?<br /> <a href="http://www.ejabberd.im/ejabberdctl-extra" title="http://www.ejabberd.im/ejabberdctl-extra">http://www.ejabberd.im/ejabberdctl-extra</a></p> <p>Is mod_xmlrpc not able to create shared rosters?</p> Wed, 23 Nov 2005 01:49:24 +0000 msmith comment 1092 at https://www.ejabberd.im