[JDEV] Problems with binding
Robert Norris
rob at cataclysm.cx
Sun Dec 14 14:32:50 CST 2003
On Sat, Dec 13, 2003 at 05:30:21PM +0300, Alexey Nezhdanov wrote:
> Found strange behaiveour: server binds only "host/resource" and ignores
> the node part.
> DEBUG: socket sent <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'
> mechanism='PLAIN'>d29vZHk4LnBlbnphLWdzbS5ydQB0ZXN0AHRlc3Q=\n</auth>
When decoded, this has an authzid of 'woody8.penza-gsm.ru' (no node
part).
However, jabberd2 should have thrown you off at this time. I'll add some
extra checks to make sure it does.
> 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>
Be aware that after binding, you have to issue a session start (XMPP-IM
section 2) before you can send normal client packets.
Rob.
--
Robert Norris GPG: 1024D/FC18E6C2
Email+Jabber: rob at cataclysm.cx Web: http://cataclysm.cx/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://www.jabber.org/jdev/attachments/20031215/0d23e2c6/attachment-0002.pgp>
More information about the JDev
mailing list