ejabberd - Comments for "how to get the member list of a members-only MUC" https://www.ejabberd.im/node/4159 en ok, thanks https://www.ejabberd.im/node/4159#comment-56434 <p>ok, thanks</p> Fri, 23 Jul 2010 05:55:20 +0000 caili comment 56434 at https://www.ejabberd.im Umm https://www.ejabberd.im/node/4159#comment-56431 <div class="quote-msg"> <div class="quote-author"><em>caili</em> wrote:</div> <p>Is there any further configuration options to make this work without setting the ownership manually for every MUC? </p></div> <p>Not that I'm aware.</p> <div class="quote-msg"> <div class="quote-author"><em>caili</em> wrote:</div> <p>Furthermore, is it possible to allow admin login from given IPs only? </p></div> <p>Not possible I think.</p> Wed, 21 Jul 2010 07:57:27 +0000 mfoss comment 56431 at https://www.ejabberd.im thanks for the reply. It https://www.ejabberd.im/node/4159#comment-56429 <p>Hi badlop, thanks for the reply. </p> <p>It works in the case that the MUC was created in-band. Since I'm managing the MUCs by mod_muc_admin over mod_rest:</p> <div class="codeblock"><code>(ejabberdctl) create_room abc conference.localhost localhost</code></div> <div class="codeblock"><code>&lt;iq from=&#039;admin@localhost&#039; to=&#039;abc@conference.localhost&#039; type=&#039;get&#039;&gt;<br />&nbsp; &lt;query xmlns=&#039;http://jabber.org/protocol/muc#admin&#039;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp; &lt;item affiliation=&#039;member&#039;/&gt;<br />&nbsp; &lt;/query&gt;<br />&lt;/iq&gt;</code></div> <div class="codeblock"><code>&lt;iq type=&quot;error&quot; to=&quot;admin@localhost/27478666621279420237346182&quot; from=&quot;abc@conference.localhost&quot;&gt;<br />&nbsp; &lt;query xmlns=&quot;http://jabber.org/protocol/muc#admin&quot;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;item affiliation=&quot;member&quot;/&gt;<br />&nbsp; &lt;/query&gt;<br />&nbsp; &lt;error code=&quot;403&quot; type=&quot;auth&quot;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;forbidden xmlns=&quot;urn:ietf:params:xml:ns:xmpp-stanzas&quot;/&gt;<br />&nbsp;&nbsp;&nbsp; &lt;text xmlns=&quot;urn:ietf:params:xml:ns:xmpp-stanzas&quot;&gt;Administrator privileges required&lt;/text&gt;<br />&nbsp; &lt;/error&gt;<br />&lt;/iq&gt;</code></div> <p>It seems not to work until I set the affiliation to 'owner' manually, right after creating of the room:</p> <div class="codeblock"><code>(ejabberdctl) set_room_affiliation abc conference.localhost admin@localhost owner</code></div> <p>Is there any further configuration options to make this work without setting the ownership manually for every MUC?<br /> Furthermore, is it possible to allow admin login from given IPs only?</p> Sun, 18 Jul 2010 03:10:07 +0000 caili comment 56429 at https://www.ejabberd.im caili wrote: is it also https://www.ejabberd.im/node/4159#comment-56428 <div class="quote-msg"> <div class="quote-author"><em>caili</em> wrote:</div> <p>is it also possible for the ejabberd admin to do this, without actually logging into any user account? </p></div> <p>Umm, without logging? It is required to login in ejabberd with the Jabber account that has admin privilege, and then send the query IQ.</p> <div class="quote-msg"> <div class="quote-author"><em>caili</em> wrote:</div> <p>How could I configure to make this work, or should I add the ejabberd admin to the room admins as well? </p></div> <p>This configuration makes joe@localhost a "MUC service administrator":</p> <pre> {acl, admin, {user, "joe", "localhost"}}. {access, muc_admin, [{allow, admin}]}. {modules, [ {mod_muc, [ {access_admin, muc_admin}, ... ]}. </pre><p>Then I login to the account joe@localhost and I send this stanza:</p> <pre> &lt;iq type='get' to='aa@conference.localhost'&gt; &lt;query xmlns='http://jabber.org/protocol/muc#admin'&gt; &lt;item affiliation='member'/&gt; &lt;query&gt; &lt;iq&gt; </pre><p>And I receive the list of members correctly:</p> <pre> &lt;iq from='aa@conference.localhost' to='joe@localhost/work' type='result'&gt; &lt;query xmlns='http://jabber.org/protocol/muc#admin'&gt; &lt;item affiliation='member' jid='badlop2@localhost'&gt; &lt;reason/&gt; &lt;item&gt; &lt;item affiliation='member' jid='badlop3@localhost'&gt; &lt;reason/&gt; &lt;item&gt; &lt;query&gt; &lt;iq&gt; </pre> Sat, 17 Jul 2010 21:54:31 +0000 mfoss comment 56428 at https://www.ejabberd.im