[Pidgin] #6635: XMPP registration fails

Pidgin trac at pidgin.im
Tue Aug 19 17:36:27 EDT 2008


#6635: XMPP registration fails
--------------------+-------------------------------------------------------
 Reporter:  Schuk   |     Owner:  deryni
     Type:  defect  |    Status:  new   
Component:  XMPP    |   Version:  2.4.3 
 Keywords:          |  
--------------------+-------------------------------------------------------
 If I try to register a new account of "test@ example.com" at a Openfire
 3.5.2 XMPP Server, I receive the error "400: Bad request". Pidgin trys to
 address the wrong recipient "jabber.example.com". "example.com" has an SRV
 entry to "jabber.example.com".
 "jabber.example.com" should not be addressed as this is the Domain where
 traffic is received and not the hostname of the jabber service. For
 example there will never be an account called "test@ jabber.example.com".
 See 4.4 "to" at http://www.xmpp.org/rfcs/rfc3920.html


 Openfire Warn.log:
 {{{
 2008.08.19 22:24:40 User tried to authenticate with this server using an
 unknown receipient:
 <iq type="set" id="purple49a3b578" to="jabber.example.com"
 from="example.com/3af8463">
 <query xmlns="jabber:iq:register">
 <username>test</username>
 <password>test</password>
 <name>test</name>
 <email/>
 </query>
 </iq>
 }}}


 Pidgin Debug:
 {{{
 (22:24:40) jabber: Sending (ssl): <iq type='set' id='purple49a3b578'
 to='jabber.example.com'><query
 xmlns='jabber:iq:register'><username>test</username><password>test</password><name>test</name><email/></query></iq>
 (22:24:40) jabber: Recv (ssl)(302): <iq type="error" id="purple49a3b578"
 from="jabber.example.com" to="example.com/3af8463"><query
 xmlns="jabber:iq:register"><username>test</username><password>test</password><name>test</name><email/></query><error
 code="400" type="modify"><bad-request xmlns="urn:ietf:params:xml:ns:xmpp-
 stanzas"/></error></iq>
 }}}

 Previously sent XML Packets are addressed correct and get a proper
 response:

 Pidgin Debug:
 {{{
 (22:24:02) jabber: Sending (ssl): <stream:stream to='example.com'
 xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'
 version='1.0'>
 (22:24:02) jabber: Recv (ssl)(573): <?xml version='1.0'
 encoding='UTF-8'?><stream:stream
 xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"
 from="example.com" id="3af8463" xml:lang="en"
 version="1.0"><stream:features><mechanisms xmlns="urn:ietf:params:xml:ns
 :xmpp-sasl"><mechanism>DIGEST-
 MD5</mechanism><mechanism>PLAIN</mechanism><mechanism>CRAM-
 MD5</mechanism></mechanisms><compression
 xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><auth
 xmlns="http://jabber.org/features/iq-auth"/><register
 xmlns="http://jabber.org/features/iq-register"/></stream:features>
 (22:24:02) jabber: Sending (ssl): <iq type='get'
 id='purple49a3b577'><query xmlns='jabber:iq:register'/></iq>
 (22:24:02) jabber: Recv (ssl)(613): <iq type="result"
 id="purple49a3b577"><query
 xmlns="jabber:iq:register"><username/><password/><email/><name/><x
 xmlns="jabber:x:data" type="form"><title>XMPP Client
 Registration</title><instructions>Please provide the following
 information</instructions><field var="FORM_TYPE"
 type="hidden"><value>jabber:iq:register</value></field><field
 label="Username" var="username" type="text-
 single"><required/></field><field label="Full name" var="name" type="text-
 single"/><field label="Email" var="email" type="text-single"/><field
 label="Password" var="password" type="text-
 private"><required/></field></x></query></iq>
 }}}

 Regards,
 Thomas

-- 
Ticket URL: <http://developer.pidgin.im/ticket/6635>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list