[Pidgin] #7654: Plain auth in XMPP doesn't seem to work

Pidgin trac at pidgin.im
Sat Nov 29 13:20:36 EST 2008


#7654: Plain auth in XMPP doesn't seem to work
--------------------+-------------------------------------------------------
 Reporter:  roman   |        Owner:  lschiere
     Type:  defect  |       Status:  pending 
Milestone:          |    Component:  XMPP    
  Version:  2.5.2   |   Resolution:          
 Keywords:          |  
--------------------+-------------------------------------------------------
Changes (by roman):

  * status:  pending => new


Comment:

 After that, this is what happens, the client initiates a new stream
 (http://xmpp.org/rfcs/rfc3920.html, section 6.5, step 10) and the server
 (being in the state with open session) sends the features:

 {{{
 (13:37:09) jabber: Recv (51): <success xmlns='urn:ietf:params:xml:ns:xmpp-
 sasl'/>
 (13:37:09) jabber: Sending: <stream:stream to='somedomain.com'
 xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'
 version='1.0'>
 (13:37:09) jabber: Recv (149): <stream:stream xmlns='jabber:client'
 xmlns:stream='http://etherx.jabber.org/streams' id='yKS1S4sWT'
 from='somedomain.com' version='1.0'><stream:features/>
 }}}
 in this state the client should consider itself "in" and request a roster,
 but
 now the weird thing happens, the client falls back to obsolete XEP-0065
 authentication (I broke lines to make it readable):
 {{{
 (13:37:09) jabber: Sending: <iq type='get' id='purplea35f454f'>
 <query
 xmlns='jabber:iq:auth'><username>someusername</username></query></iq>
 (13:37:09) jabber: Recv (114): <iq type='result' id='purplea35f454f'>
 <query
 xmlns='jabber:iq:auth'><username/><password/><resource/></query></iq>
 (13:37:09) jabber: Sending: <iq type='set' id='purplea35f4550'>
 <query
 xmlns='jabber:iq:auth'><username>someusername</username><resource>Home</resource><password>somepassword</password></query></iq>
 }}}

 Why is the "success" considered a XML parser error? Is the end of stream
 is expected?

-- 
Ticket URL: <http://developer.pidgin.im/ticket/7654#comment:3>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list