[JDEV] Problems with binding
Alexey Nezhdanov
snake at penza-gsm.ru
Sat Dec 13 08:30:21 CST 2003
Hello again. Sorry for annoyance.
Tested binding against jabberd2rc2.
Found strange behaiveour: server binds only "host/resource" and ignores
the node part.
Can anybody please point me to the error?
Example:
=========Connect to port 5222==============
DEBUG: socket sent <?xml version='1.0'?><stream:stream
version='1.0' xmlns:stream='http://etherx.jabber.org/streams'
to='woody8.penza-gsm.ru' xmlns='jabber:client'>
DEBUG: socket got <?xml version='1.0'?><stream:stream
xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client'
from='woody8.penza-gsm.ru' version='1.0'
id='q3aaiyvsvi01lc6xfij1a6mmfcza7eyxh97073t3'>
DEBUG: socket got <stream:features
xmlns:stream='http://etherx.jabber.org/streams'><starttls
xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><mechanisms
xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms></stream:features>
DEBUG: socket sent <starttls
xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
DEBUG: socket got <proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
=========TLS started, socket switched to SSL. Performing SASL using
mechanism "PLAIN" =====================
DEBUG: socket sent <?xml version='1.0'?><stream:stream
version='1.0' xmlns:stream='http://etherx.jabber.org/streams'
to='woody8.penza-gsm.ru' xmlns='jabber:client'>
DEBUG: socket got <?xml version='1.0'?><stream:stream
xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client'
from='woody8.penza-gsm.ru' version='1.0'
id='mu486b5mtpn3vaqbnpmu4ksmu0m13g5qaayhl43f'>
DEBUG: socket got <stream:features
xmlns:stream='http://etherx.jabber.org/streams'><mechanisms
xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms></stream:features>
DEBUG: socket sent <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'
mechanism='PLAIN'>d29vZHk4LnBlbnphLWdzbS5ydQB0ZXN0AHRlc3Q=\n</auth>
DEBUG: socket got <success
xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
======== Sucessfully authenticated. Binding resource "test"
======================
DEBUG: socket sent <?xml version='1.0'?><stream:stream
version='1.0' xmlns:stream='http://etherx.jabber.org/streams'
to='woody8.penza-gsm.ru' xmlns='jabber:client'>
DEBUG: socket got <?xml version='1.0'?><stream:stream
xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client'
from='woody8.penza-gsm.ru' version='1.0'
id='trjp291pznk47cq1dd3gt973j5l59pk2g3sjdt8d'>
DEBUG: socket got <stream:features
xmlns:stream='http://etherx.jabber.org/streams'><bind
xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session
xmlns='http://jabberd.jabberstudio.org/ns/session/1.0'/></stream:features>
DEBUG: socket sent <iq id='1' type='set'><bind
xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>test</resource></bind></iq>
=========Got strange jid:==================
DEBUG: socket got <iq xmlns='jabber:client' id='1'
type='result'><bind
xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>woody8.penza-gsm.ru/test</jid></bind></iq>
=========following operations fails============
DEBUG: socket sent <iq id='2' type='get'><query
xmlns='jabber:iq:roster' /></iq>
DEBUG: socket sent <presence/>
DEBUG: socket got <stream:error
xmlns:stream='http://etherx.jabber.org/streams'><not-authorized
xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error>
--
Respectively
Alexey Nezhdanov
More information about the JDev
mailing list