[Tkabber] tkabber v. ejabberd

Sergei Golovan sgolovan at kengu.ru
Fri Oct 31 21:34:52 MSK 2003


On Fri, Oct 31, 2003 at 09:07:37AM -0800, Marshall Rose wrote:
> try this:
> 
> 1. use tkabber to login to an ejabberd server.
> 
> 2. logout, but do not close tkabber.
> 
> 3. log back in with tkabber.
> 
> you get a dialog box that says:
> 
> 	Authentiation failed: 401 (Unauthorized)
> 	Create new account?

I have the same issue (libsasl2 2.1.15, Debian unstable package).
 It looks like sasl_dispose function does not actually
dispose SASL object. 

Alexey said that he can't reproduce this error, so I think it's the bug in
Cyrus SASL library.

The following is the XML dump of two login attempts, the first is successful,
the second is failed.

OUT(1):
<stream:stream xmlns:stream='http://etherx.jabber.org/streams'
xmlns='jabber:client' to='golovan.ru' version='1.0'>
IN(1,sergei at golovan.ru/tkabber661):
<stream:features>
      <mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
            <mechanism>PLAIN</mechanism>
            <mechanism>DIGEST-MD5</mechanism>
      </mechanisms>
</stream:features>

<!-- Here client choses the mechanism -->

OUT(1,sergei at golovan.ru/tkabber661):
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>

<!-- ------------------------------------------------------------- -->

IN(1,sergei at golovan.ru/tkabber661):
<challenge
xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>bm9uY2U9Ik1qYzNPVGMzT0RFd05RPT0iLHFvcD0iYXV0aCxhdXRoLWludCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>
OUT(1,sergei at golovan.ru/tkabber661):

<!-- Skipped -->

</stream:stream>

OUT(1):
<stream:stream xmlns:stream='http://etherx.jabber.org/streams'
xmlns='jabber:client' to='golovan.ru' version='1.0'>
IN(1,sergei at golovan.ru/tkabber661):
<stream:features>
      <mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
            <mechanism>PLAIN</mechanism>
            <mechanism>DIGEST-MD5</mechanism>
      </mechanisms>
</stream:features>

<!-- Here client choses the mechanism (but CDATA is nonempty!)-->

OUT(1,sergei at golovan.ru/tkabber661):
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'
mechanism='DIGEST-MD5'>dXNlcm5hbWU9InNlcmdlaSIscmVhbG09ImdvbG92YW4ucnUiLGF1dGh6aWQ9InNlcmdlaUBnb2xvdmFuLnJ1L3RrYWJiZXI2NjEiLG5vbmNlPSJNamMzT1RjM09ERXdOUT09Iixjbm9uY2U9IjFzc3ZlQUlnYWhQaTFKcUtrOTlydUF1QStRVEllUExDeWtoNWgxdVg5S289IixuYz0wMDAwMDAwMixxb3A9YXV0aCxkaWdlc3QtdXJpPSJ4bXBwL2dvbG92YW4ucnUiLHJlc3BvbnNlPWNlYWFmODcwYTE4MWRmOTRmOWEzNjdkMThjMDY5ODA4</auth>
IN(1,sergei at golovan.ru/tkabber661):
<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
      <bad-protocol/>
</failure>


-- 
Sergei 'TeopeTuK' Golovan                       <mailto:sgolovan(a)kengu.ru>
                                                <xmpp:sgolovan(a)nes.ru>



More information about the Tkabber mailing list