ejabberd - Comments for "@ejabberd_xmlrpc:build_fault_response:386 Error -118 A problem &amp;#039;{error,invalid_account_data}&amp;#039;" https://www.ejabberd.im/forum/28819/ejabberdxmlrpcbuildfaultresponse386-error-118-problem-errorinvalidaccountdata en Add also the https://www.ejabberd.im/forum/28819/ejabberdxmlrpcbuildfaultresponse386-error-118-problem-errorinvalidaccountdata#comment-67510 <p>Add also the line</p> <pre> commands_admin_access: xmlrpc_access </pre><p> When calling the command, remember to provide the admin credentials. Try this Python client, that works for me (using ejabberd 17.04, ans should work with your old version too):</p> <pre> import xmlrpclib server_url = 'http://127.0.0.1:4560' server = xmlrpclib.ServerProxy(server_url) EJABBERD_XMLRPC_LOGIN = {'user':'admin', 'server':'localhost', 'password':'mypass11', 'admin':True} def ejabberdctl(command, data): fn = getattr(server, command) return fn(EJABBERD_XMLRPC_LOGIN, data) print "" print "Calling with auth details..." result = ejabberdctl('register', {'user':'user4', 'host':'localhost', 'password':'newpass'}) print "Results: " print result </pre> Wed, 07 Jun 2017 08:22:09 +0000 badlop comment 67510 at https://www.ejabberd.im Hi. Thanks for your answer. I https://www.ejabberd.im/forum/28819/ejabberdxmlrpcbuildfaultresponse386-error-118-problem-errorinvalidaccountdata#comment-67507 <p>Hi.<br /> Thanks for your answer. I ckeck my setting and I still get the same error.<br /> The user I am using for testing purpose is able to use pidgin hence the username, the passord and the host are defined.</p> <pre> hosts: - "esfam.auf.org" listen: - port: 4560 module: ejabberd_xmlrpc maxsessions: 10 timeout: 5000 access_commands: xmlrpc_access: commands: all options: [] acl: xmlrpc_access: user: - "admin": "esfam.auf.org" access: xmlrpc_access: xmlrpc_access: allow </pre><p>Please could someone help me. I dont know what's wrong with my settings.</p> Tue, 06 Jun 2017 10:47:00 +0000 rheman comment 67507 at https://www.ejabberd.im Well, apparently the account https://www.ejabberd.im/forum/28819/ejabberdxmlrpcbuildfaultresponse386-error-118-problem-errorinvalidaccountdata#comment-67504 <p>Well, apparently the account with that username doesn't exist, or the host is not defined in ejabberd.yml, or the password is not valid for that account.</p> Mon, 05 Jun 2017 16:09:40 +0000 badlop comment 67504 at https://www.ejabberd.im