ejabberd - Comments for "Cannot login with Spark Client." https://www.ejabberd.im/node/4162 en Could it be possible for https://www.ejabberd.im/node/4162#comment-58319 <p>Could it be possible for ejabberd to be configured using Non-SASL Authentication in this situation?</p> <div class="quote-msg"> <div class="quote-author"><em>badlop</em> wrote:</div> <p>Your Spark client is incoherent:</p> <p>1. It first says it supports XMPP version 1.0</p> <p>2. Later it sends an IQ request following <noindex><a href="http://xmpp.org/extensions/xep-0078.html" rel="nofollow" >XEP-0078: Non-SASL Authentication</a></noindex>.</p> <p>If 1. is true, then the client must use SASL authentication. If 1 is false, then the client shouldn't announce version=1.0</p></div> Thu, 09 Feb 2012 01:54:26 +0000 cao.xu comment 58319 at https://www.ejabberd.im Your Spark client is incoherent https://www.ejabberd.im/node/4162#comment-56454 <p>Your Spark client is incoherent:</p> <p>1. It first says it supports XMPP version 1.0</p> <p>2. Later it sends an IQ request following <noindex><a href="http://xmpp.org/extensions/xep-0078.html" rel="nofollow" >XEP-0078: Non-SASL Authentication</a></noindex>.</p> <p>If 1. is true, then the client must use SASL authentication. If 1 is false, then the client shouldn't announce version=1.0</p> Wed, 28 Jul 2010 09:34:07 +0000 mfoss comment 56454 at https://www.ejabberd.im Great that fixed the problem. https://www.ejabberd.im/node/4162#comment-56440 <p>Great that fixed the problem. Thanks.</p> <p>I am now faced with another issue. Seems authentication related. As advised I can authenticate via pidgin but not the spark client. Here is the output of the authentication attempt:</p> <div class="codeblock"><code>=INFO REPORT==== 2010-07-24 10:52:32 ===<br />D(&lt;0.1875.0&gt;:ejabberd_receiver:320) : Received XML on stream = &quot;&lt;stream:stream to=\&quot;fedorabash.domain.com\&quot; xmlns=\&quot;jabber:client\&quot; xmlns:stream=\&quot;http://etherx.jabber.org/streams\&quot; version=\&quot;1.0\&quot;&gt;&quot; <p>=INFO REPORT==== 2010-07-24 10:52:32 ===<br />D(&lt;0.1875.0&gt;:shaper:61) : State: {maxrate,1000,60.85570277597465,<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1279939952350371}, Size=134<br />M=69.10264501297154, I=2.299</p> <p>=INFO REPORT==== 2010-07-24 10:52:32 ===<br />D(&lt;0.1876.0&gt;:ejabberd_c2s:1418) : Send XML on stream = &quot;&lt;?xml version=&#039;1.0&#039;?&gt;&lt;stream:stream xmlns=&#039;jabber:client&#039; xmlns:stream=&#039;http://etherx.jabber.org/streams&#039; id=&#039;2505562180&#039; from=&#039;fedorabash.domain.com&#039; version=&#039;1.0&#039; xml:lang=&#039;en&#039;&gt;&quot;</p> <p>=INFO REPORT==== 2010-07-24 10:52:32 ===<br />I(&lt;0.1876.0&gt;:ejabberd_c2s:259) : FQDN: &quot;fedorabash&quot;</p> <p>=INFO REPORT==== 2010-07-24 10:52:32 ===<br />D(&lt;0.1876.0&gt;:ejabberd_c2s:1418) : Send XML on stream = &quot;&lt;stream:features&gt;&lt;mechanisms xmlns=&#039;urn:ietf:params:xml:ns:xmpp-sasl&#039;&gt;&lt;mechanism&gt;GSSAPI&lt;/mechanism&gt;&lt;mechanism&gt;PLAIN&lt;/mechanism&gt;&lt;/mechanisms&gt;&lt;register xmlns=&#039;http://jabber.org/features/iq-register&#039;/&gt;&lt;/stream:features&gt;&quot;</p> <p>=INFO REPORT==== 2010-07-24 10:52:32 ===<br />D(&lt;0.1875.0&gt;:ejabberd_receiver:320) : Received XML on stream = &quot;&lt;iq id=\&quot;NaJxl-0\&quot; type=\&quot;get\&quot;&gt;&lt;query xmlns=\&quot;jabber:iq:auth\&quot;&gt;&lt;username&gt;bob&lt;/username&gt;&lt;/query&gt;&lt;/iq&gt;&quot;</p> <p>=INFO REPORT==== 2010-07-24 10:52:32 ===<br />D(&lt;0.1875.0&gt;:shaper:61) : State: {maxrate,1000,0,1279939952353535}, Size=100<br />M=50.0, I=214.212</p> <p>=INFO REPORT==== 2010-07-24 10:52:32 ===<br />D(&lt;0.1876.0&gt;:ejabberd_c2s:1418) : Send XML on stream = &quot;&lt;iq from=&#039;fedorabash.domain.com&#039; id=&#039;NaJxl-0&#039; type=&#039;error&#039;&gt;&lt;error code=&#039;503&#039; type=&#039;cancel&#039;&gt;&lt;service-unavailable xmlns=&#039;urn:ietf:params:xml:ns:xmpp-stanzas&#039;/&gt;&lt;/error&gt;&lt;/iq&gt;&quot;</p></code></div> <p>As far as I can see its an authentication issue. I am authenticating against an LDAP server which as previously said is working when logging in with pidgin. I have the below config:</p> <div class="codeblock"><code>{5222, ejabberd_c2s, [ <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %%<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %% If TLS is compiled in and you installed a SSL<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %% certificate, specify the full path to the<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %% file and uncomment this line:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %%<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {certfile, &quot;/etc/ejabberd/ejabberd.pem&quot;}, starttls,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {access, c2s},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {shaper, c2s_shaper},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {max_stanza_size, 65536}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]},</p></code></div> <p>Any thoughts?<br /> <code></code></p> Sat, 24 Jul 2010 03:00:23 +0000 seventy7 comment 56440 at https://www.ejabberd.im seventy7 wrote: I see this is https://www.ejabberd.im/node/4162#comment-56435 <div class="quote-msg"> <div class="quote-author"><em>seventy7</em> wrote:</div> <p>I see this is the log file when I attempt to login from the spark client:</p> <div class="codeblock"><code>=INFO REPORT==== 2010-07-23 11:20:33 ===<br />D(&lt;0.514.0&gt;:ejabberd_receiver:320) : Received XML on stream = &quot;&lt;stream:stream to=\&quot;10.2.43.188\&quot; xmlns=\&quot;jabber:client\&quot; xmlns:stream=\&quot;http://etherx.jabber.org/streams\&quot; version=\&quot;1.0\&quot;&gt;&quot; <p>...</p> <p>=INFO REPORT==== 2010-07-23 11:20:33 ===<br />D(&lt;0.515.0&gt;:ejabberd_c2s:1418) : Send XML on stream = &quot;&lt;stream:error&gt;&lt;host-unknown xmlns=&#039;urn:ietf:params:xml:ns:xmpp-streams&#039;/&gt;&lt;/stream:error&gt;&quot;</p></code></div> </div> <p>If you configured in ejabberd.cfg<br /> {hosts, ["domain.com"]}.</p> <p>then you should tell your Jabber client to connect to domain.com, not to 10.2.43.188.</p> Fri, 23 Jul 2010 10:32:38 +0000 mfoss comment 56435 at https://www.ejabberd.im