ejabberd - Comments for "Communicate with User&amp;#039;s data" https://www.ejabberd.im/node/136 en change password at command line https://www.ejabberd.im/node/136#comment-53511 <p>Hello,</p> <p>I'm on debian etch and wanted to find a command line solution that did not require patches.</p> <p>I have figured out the following commands which change a user's password (requires root access to read the cookie file):</p> <div class="codeblock"><code>echo &#039;ejabberd_auth:set_password(&quot;username&quot;, &quot;servername&quot;, &quot;password&quot;).&#039; \<br />&nbsp; | HOME=/var/lib/ejabberd erl_call -sname ejabberd@nodename -e</code></div> <p>-or-</p> <div class="codeblock"><code>echo &#039;ejabberd_auth:set_password(&quot;username&quot;, &quot;servername&quot;, &quot;password&quot;).&#039; \<br />&nbsp; | erl_call -c `cat /var/lib/ejabberd/.erlang.cookie` -sname ejabberd@nodename -e</code></div> <p>The two commands should be equivalent, they just illustrate two methods for getting the erlang cookie.</p> <p>I hope someone finds this useful!</p> Wed, 27 Aug 2008 17:57:07 +0000 mikecd comment 53511 at https://www.ejabberd.im hi badlop Thanks for https://www.ejabberd.im/node/136#comment-51621 <p>hi badlop</p> <p>Thanks for reminding me i was in a trouble thats y i ask u to add me.ok i will start a new thread and will wait for your responce</p> Tue, 15 Jan 2008 08:19:33 +0000 usmaan comment 51621 at https://www.ejabberd.im I am not your slave. https://www.ejabberd.im/node/136#comment-51618 <div class="quote-msg"> <div class="quote-author"><em>usmaan</em> wrote:</div> <p>hay badlop plz add me on msn messenger<br /> i have few question that i want to solve online<br /> plz ad me</p> <p> <noindex><a href="mailto:shani1997@hotmail.com" rel="nofollow" >shani1997@hotmail.com</a></noindex></p> <p>i will wait for u.</p></div> <p>I am not your personal servant, neither your slave. I will not add you.</p> <p>If you have a problem, start a new thread in the forum or in the mailing list.</p> <p>You probably also want to respect the basic rules of communication in Open Source and Free Software projects, Internet forums, Netiquette, etc.</p> Mon, 14 Jan 2008 10:35:08 +0000 mfoss comment 51618 at https://www.ejabberd.im hay badlop plz add me on https://www.ejabberd.im/node/136#comment-51616 <p>hay badlop plz add me on msn messenger<br /> i have few question that i want to solve online<br /> plz ad me</p> <p> <noindex><a href="mailto:shani1997@hotmail.com" rel="nofollow" >shani1997@hotmail.com</a></noindex></p> <p>i will wait for u.</p> Mon, 14 Jan 2008 09:39:25 +0000 usmaan comment 51616 at https://www.ejabberd.im ejabberd_ctl patch to create user and change pass https://www.ejabberd.im/node/136#comment-297 <p>I've reread your requirements and I found an easier solution. <a href="/node/128#comment-247">This unofficial patch</a> for ejabberd_ctl adds several commands, and some of them are exactly what you are seeking.</p> <p>With that patch, you have two new command line options for ejabberd_ctl: <pre>register user password set-password user password</pre> So there's no need for XML-RPC at all, just a command line call!</p> Sat, 02 Apr 2005 15:05:05 +0000 mfoss comment 297 at https://www.ejabberd.im Hi badlop. Thanks again for t https://www.ejabberd.im/node/136#comment-290 <p>Hi badlop. Thanks again for the reply.</p> <p>Please ignore the no.3, cause at first I thought of letting the members be able to change their nickname thru the web. But I think, this is very-very not important at all. It's more fun to be able to change nickname instantly using messenger and not thru web.</p> <p>For the no.4, I'm already running a community site with thousands of members. Now, I wanna provide them with messenger service. When everything is ready, I need to import all the existing members data (username+password) to ejabberd server so that they can login right away with their new instant messenger.</p> Wed, 30 Mar 2005 11:15:55 +0000 bioclef comment 290 at https://www.ejabberd.im other than HTML& CGI/Perl, my https://www.ejabberd.im/node/136#comment-271 <blockquote>other than HTML& CGI/Perl, my knowledge with any other computer language is nearly zero</blockquote> <p>No problem, just start <a href="http://www.google.com/search?q=perl%20xml-rpc">goggling</a> for examples of Perl scripts that queries XML-RPC.</p> <blockquote>3. User change nickname</blockquote> <p>Do you mean, to change the vCard nickname?</p> <blockquote>4. Import all existing user's to Ejabberd database (username + password).</blockquote> <p>It seems easier that you just call several times 1., right?</p> <p>Clarify me points 3 and 4 so I can improve the module.</p> Thu, 24 Mar 2005 11:15:32 +0000 mfoss comment 271 at https://www.ejabberd.im Hi badlop. Thanks for this https://www.ejabberd.im/node/136#comment-270 <p>Hi badlop.</p> <p>Thanks for this great help. Where can I get the module? And other than HTML&amp; CGI/Perl, my knowledge with any other computer language is nearly zero. I'm not sure what this XML-RPC is all about but I will read it after this.</p> <p>All my scripts are written in Perl, so I just need to write few scripts to send a command to your module for:</p> <p>1. Create new user with password<br /> 2. User change password<br /> 3. User change nickname<br /> 4. Import all existing user's to Ejabberd database (username + password).</p> <p>Is there anything else that I should also think of? Hope to hear from you soon. :)</p> <p>Regards.</p> Thu, 24 Mar 2005 06:25:02 +0000 bioclef comment 270 at https://www.ejabberd.im ejabberd module with XML-RPC interface https://www.ejabberd.im/node/136#comment-268 <blockquote>I would like my script to communicate with Ejabberd user's data. So that it will synchronise whenever a user change their password and a new registration.</blockquote> <p>There is nothing right now that does exactly what you need, but with little work you can have it.</p> <p>Instead of modifying the ejabberd database on your own, why not communicate with ejabberd and request him to create, remove or change passwords? This way your programs are invulnerable to database structure changes, and are even server independent.</p> <p>I wrote a module for ejabberd that starts a <a href="http://www.xml-rpc.com/">XML-RPC</a> server and waits for external requests. Those requests could be: create user, remove user, change password, check password, check user exists... This way you can write your program in any language, and send requests via XML-RPC to ejabberd.</p> Wed, 23 Mar 2005 10:16:23 +0000 mfoss comment 268 at https://www.ejabberd.im