ejabberd - Comments for "Perl Net::Jabber &amp;quot;error not-authorized&amp;quot;" https://www.ejabberd.im/node/3529 en Tried it with two different https://www.ejabberd.im/node/3529#comment-54305 <p>Tried it with two different ejabberd accounts. Copy-and-pasted the username &amp; password for the one brand-new one that this script will eventually use. The other is one that I already use with Adium as a client.</p> <p>I am 100% positive I'm using the same username/password both with the working client and the non-working Perl script. Obviously, something is changing how it is presented to the server but I don't know where to look or what to try changing. Do I need to hash the password somehow before sending it? Something else?</p> Mon, 01 Jun 2009 15:19:33 +0000 apu comment 54305 at https://www.ejabberd.im The script tries to login https://www.ejabberd.im/node/3529#comment-54304 <div class="quote-msg"> <div class="quote-author"><em>apu</em> wrote:</div> <p>I hardcoded the recipient and message into my test script.</p> <p>On the ejabberd (2.0.5) side, I get </p> <pre> =INFO REPORT==== 2009-05-30 11:34:42 === I(&lt;0.368.0&gt;:ejabberd_c2s:709) : ({socket_state,gen_tcp,#Port&lt;0.427&gt;,&lt;0.367.0&gt;}) Failed authentication for <noindex><a href="mailto:apu@im.nocservices.com" rel="nofollow" >apu@im.nocservices.com</a></noindex> </pre><p> The username/password is correct</p></div> <p>Obviously it isn't correct.</p> <p>If you create an account <noindex><a href="mailto:apu@im.nocservices.com" rel="nofollow" >apu@im.nocservices.com</a></noindex> with password notifypass, put in the Perl script:</p> <pre> use constant USER =&gt; 'apu'; # user this script connects as use constant SERVER =&gt; 'im.nocservices.com'; # Jabber server to connect to use constant PASSWORD =&gt; 'notifypass'; # password associated with USER </pre><p> It works for me using ejabberd 2.0.5.</p> Mon, 01 Jun 2009 13:32:48 +0000 mfoss comment 54304 at https://www.ejabberd.im