ejabberd - Comments for "ejabberd_xmlrpc module doesn&amp;#039;t work with auth" https://www.ejabberd.im/node/3919 en Working script for different configurations https://www.ejabberd.im/node/3919#comment-55433 <p>After some testing, I found the correct script for the different settings.</p> <h2>Not require auth</h2> <p>If you configure like this:</p> <pre> {listen, [ ... {4560, ejabberd_xmlrpc, [ ]}, ... ]}. </pre><p> Then use a script like this:</p> <pre> import xmlrpclib server_url = 'http://localhost:4560'; server = xmlrpclib.Server(server_url); params = {} params["host"] = "localhost" print server.registered_users(params) </pre><h2>Requiring auth</h2> <p>If you configure like this:</p> <pre> {acl, admin, {user, "joerules", "localhost"}}. {access, configure, [{allow, admin}]}. {listen, [ ... {4560, ejabberd_xmlrpc, [ {access_commands, [{configure, all, []}]} ]}, ... ]}. </pre><p> Then use a script like this:</p> <pre> import xmlrpclib server_url = 'http://localhost:4560'; server = xmlrpclib.Server(server_url); params = {} params["host"] = "localhost" auth = {} auth["user"] = "joerules" auth["server"] = "localhost" auth["password"] = "mypass123" print server.registered_users(auth, params) </pre> Fri, 19 Mar 2010 19:39:18 +0000 mfoss comment 55433 at https://www.ejabberd.im doesn't work yet https://www.ejabberd.im/node/3919#comment-55432 <p>But in docu says:</p> <div class="codeblock"><code>In this case authentication information must be provided, but it is<br />enough that the account exists and the password is valid to execute<br />any command:<br />{listen, [<br />&nbsp; {4560, ejabberd_xmlrpc, [{maxsessions, 10}, {timeout, 5000},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {access_commands, [{all, all, []}]}]},<br />&nbsp; ...<br /> ]}.</code></div> <p>although I tried to change first 'all' by 'admin1' and it has the same behaviour.</p> Fri, 19 Mar 2010 17:03:02 +0000 oriol.rius comment 55432 at https://www.ejabberd.im The documentation says: 5. https://www.ejabberd.im/node/3919#comment-55423 <p>The documentation says:</p> <pre>5. Note: if ejabberd_xmlrpc has the option 'access_commands' configured, as the example configurations provided above, the XML-RPC must include first an argument providing information of a valid account.</pre><p> But there is an exception: if you didn't configure any restriction in the option, then don't provide the auth arguments.</p> Wed, 17 Mar 2010 17:52:47 +0000 mfoss comment 55423 at https://www.ejabberd.im