<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=KOI8-R">
<title></title>
</head>
<body>
Robert Norris wrote:<br>
<blockquote type="cite"
cite="mid20031214203250.GA4317@gideon.its.monash.edu.au">
<pre wrap="">On Sat, Dec 13, 2003 at 05:30:21PM +0300, Alexey Nezhdanov wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Found strange behaiveour: server binds only "host/resource" and ignores
the node part.
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">DEBUG: socket sent <auth xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-sasl">urn:ietf:params:xml:ns:xmpp-sasl</a>'
mechanism='PLAIN'>d29vZHk4LnBlbnphLWdzbS5ydQB0ZXN0AHRlc3Q=\n</auth>
</pre>
</blockquote>
<pre wrap=""><!---->
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.</pre>
</blockquote>
Ok. Maked the change:<br>
-ššššššššššš
sasl_data='%s\x00%s\x00%s'%(self._owner.Server,self.username,self.password)<br>
+ššššššššššš
sasl_data='%s\x00%s\x00%s'%(self.username+'@'+self._owner.Server,self.username,self.password)<br>
And fast-tested to view if binding corrected:<br>
================================<br>
DEBUG: socketšššššš gotšš <a class="moz-txt-link-rfc2396E" href="stream:featuresxmlns:stream='http://etherx.jabber.org/streams'"><stream:features
xmlns:stream='http://etherx.jabber.org/streams'></a><mechanisms
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-sasl">urn:ietf:params:xml:ns:xmpp-sasl</a>'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms></<a class="moz-txt-link-freetext" href="stream:features">stream:features</a>><br>
DEBUG: socketšššššš sentš <auth
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-sasl">urn:ietf:params:xml:ns:xmpp-sasl</a>'
mechanism='PLAIN'>dGVzdEB3b29keTgucGVuemEtZ3NtLnJ1AHRlc3QAdGVzdA==\n</auth><br>
DEBUG: socketšššššš gotšš <success
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-sasl">urn:ietf:params:xml:ns:xmpp-sasl</a>'/><br>
DEBUG: socketšššššš sentš <?xml version='1.0'?><a class="moz-txt-link-rfc2396E" href="stream:streamversion='1.0'xmlns:stream='http://etherx.jabber.org/streams'to='woody8.penza-gsm.ru'xmlns='jabber:client'"><stream:stream
version='1.0' xmlns:stream='http://etherx.jabber.org/streams'
to='woody8.penza-gsm.ru' xmlns='jabber:client'></a><br>
DEBUG: socketšššššš gotšš <?xml version='1.0'?><a class="moz-txt-link-rfc2396E" href="stream:streamxmlns:stream='http://etherx.jabber.org/streams'xmlns='jabber:client'from='woody8.penza-gsm.ru'version='1.0'id='rhy9t7csywfox353rspqqp0en1xbzn5q440ybcqa'"><stream:stream
xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client'
from='woody8.penza-gsm.ru' version='1.0'
id='rhy9t7csywfox353rspqqp0en1xbzn5q440ybcqa'></a><br>
DEBUG: socketšššššš gotšš <a class="moz-txt-link-rfc2396E" href="stream:featuresxmlns:stream='http://etherx.jabber.org/streams'"><stream:features
xmlns:stream='http://etherx.jabber.org/streams'></a><bind
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-bind">urn:ietf:params:xml:ns:xmpp-bind</a>'/><session
xmlns='<a class="moz-txt-link-freetext" href="http://jabberd.jabberstudio.org/ns/session/1.0">http://jabberd.jabberstudio.org/ns/session/1.0</a>'/></<a class="moz-txt-link-freetext" href="stream:features">stream:features</a>><br>
DEBUG: socketšššššš sentš <iq id='1' type='set'><bind
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-bind">urn:ietf:params:xml:ns:xmpp-bind</a>' /></iq><br>
DEBUG: socketšššššš gotšš <iq xmlns='<a class="moz-txt-link-freetext" href="jabber:client">jabber:client</a>' id='1'
type='result'><bind
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-bind">urn:ietf:params:xml:ns:xmpp-bind</a>'><jid><a class="moz-txt-link-abbreviated" href="mailto:test@woody8.penza-gsm.ru/219e900d0e8d92752040bcab4c71835e3884dd69">test@woody8.penza-gsm.ru/219e900d0e8d92752040bcab4c71835e3884dd69</a></jid></bind></iq><br>
DEBUG: socketšššššš sentš <iq id='2' type='get'><query
xmlns='<a class="moz-txt-link-freetext" href="jabber:iq:roster">jabber:iq:roster</a>' /></iq><br>
DEBUG: socketšššššš sentš <presence id='3' /><br>
DEBUG: socketšššššš gotšš <a class="moz-txt-link-rfc2396E" href="stream:errorxmlns:stream='http://etherx.jabber.org/streams'"><stream:error
xmlns:stream='http://etherx.jabber.org/streams'></a><not-authorized
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-streams">urn:ietf:params:xml:ns:xmpp-streams</a>'/></<a class="moz-txt-link-freetext" href="stream:error">stream:error</a>><br>
================================<br>
It seems that I got another sort of error from now on. Subsequent run
(with wrong password):<br>
================================<br>
DEBUG: socketšššššš sentš <?xml version='1.0'?><a class="moz-txt-link-rfc2396E" href="stream:streamversion='1.0'xmlns:stream='http://etherx.jabber.org/streams'to='woody8.penza-gsm.ru'xmlns='jabber:client'"><stream:stream
version='1.0' xmlns:stream='http://etherx.jabber.org/streams'
to='woody8.penza-gsm.ru' xmlns='jabber:client'></a><br>
DEBUG: socketšššššš gotšš <?xml version='1.0'?><a class="moz-txt-link-rfc2396E" href="stream:streamxmlns:stream='http://etherx.jabber.org/streams'xmlns='jabber:client'from='woody8.penza-gsm.ru'version='1.0'id='7oymrciubfrsd0dstfcww7eucqnlp94wy3jpf2kq'"><stream:stream
xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client'
from='woody8.penza-gsm.ru' version='1.0'
id='7oymrciubfrsd0dstfcww7eucqnlp94wy3jpf2kq'></a><br>
DEBUG: socketšššššš gotšš <a class="moz-txt-link-rfc2396E" href="stream:featuresxmlns:stream='http://etherx.jabber.org/streams'"><stream:features
xmlns:stream='http://etherx.jabber.org/streams'></a><starttls
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-tls">urn:ietf:params:xml:ns:xmpp-tls</a>'/><mechanisms
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-sasl">urn:ietf:params:xml:ns:xmpp-sasl</a>'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms></<a class="moz-txt-link-freetext" href="stream:features">stream:features</a>><br>
DEBUG: socketšššššš sentš <starttls
xmlns=<a class="moz-txt-link-rfc2396E" href="urn:ietf:params:xml:ns:xmpp-tls">"urn:ietf:params:xml:ns:xmpp-tls"</a>/><br>
DEBUG: socketšššššš gotšš <proceed
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-tls">urn:ietf:params:xml:ns:xmpp-tls</a>'/><br>
DEBUG: socketšššššš sentš <?xml version='1.0'?><a class="moz-txt-link-rfc2396E" href="stream:streamversion='1.0'xmlns:stream='http://etherx.jabber.org/streams'to='woody8.penza-gsm.ru'xmlns='jabber:client'"><stream:stream
version='1.0' xmlns:stream='http://etherx.jabber.org/streams'
to='woody8.penza-gsm.ru' xmlns='jabber:client'></a><br>
DEBUG: socketšššššš gotšš <?xml version='1.0'?><a class="moz-txt-link-rfc2396E" href="stream:streamxmlns:stream='http://etherx.jabber.org/streams'xmlns='jabber:client'from='woody8.penza-gsm.ru'version='1.0'id='hbjucxn5cz287g3k7r5w0atydcose8jwk2qw0e2c'"><stream:stream
xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client'
from='woody8.penza-gsm.ru' version='1.0'
id='hbjucxn5cz287g3k7r5w0atydcose8jwk2qw0e2c'></a><br>
DEBUG: socketšššššš gotšš <a class="moz-txt-link-rfc2396E" href="stream:featuresxmlns:stream='http://etherx.jabber.org/streams'"><stream:features
xmlns:stream='http://etherx.jabber.org/streams'></a><mechanisms
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-sasl">urn:ietf:params:xml:ns:xmpp-sasl</a>'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms></<a class="moz-txt-link-freetext" href="stream:features">stream:features</a>><br>
DEBUG: socketšššššš sentš <auth
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-sasl">urn:ietf:params:xml:ns:xmpp-sasl</a>'
mechanism='PLAIN'>dGVzdEB3b29keTgucGVuemEtZ3NtLnJ1AHRlc3QAdGVzdHJmZ3JlZw==\n</auth><br>
DEBUG: socketšššššš error Socket error while receiving data<br>
DEBUG: socketšššššš error Socket operation failed<br>
================================<br>
When I returned password to the correct one the output still the same.
Jabberd2 just closes the stream now without any notice. I will restart
jabberd2 today and see if it will correct the error.<br>
<br>
--<br>
Respectively<br>
Alexey Nezhdanov.<br>
<br>
</body>
</html>