<!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  &lt;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'&gt;d29vZHk4LnBlbnphLWdzbS5ydQB0ZXN0AHRlc3Q=\n&lt;/auth&gt;
    </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'">&lt;stream:features
xmlns:stream='http://etherx.jabber.org/streams'&gt;</a>&lt;mechanisms
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-sasl">urn:ietf:params:xml:ns:xmpp-sasl</a>'&gt;&lt;mechanism&gt;DIGEST-MD5&lt;/mechanism&gt;&lt;mechanism&gt;PLAIN&lt;/mechanism&gt;&lt;/mechanisms&gt;&lt;/<a class="moz-txt-link-freetext" href="stream:features">stream:features</a>&gt;<br>
DEBUG: socketšššššš sentš &lt;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'&gt;dGVzdEB3b29keTgucGVuemEtZ3NtLnJ1AHRlc3QAdGVzdA==\n&lt;/auth&gt;<br>
DEBUG: socketšššššš gotšš &lt;success
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-sasl">urn:ietf:params:xml:ns:xmpp-sasl</a>'/&gt;<br>
DEBUG: socketšššššš sentš &lt;?xml version='1.0'?&gt;<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'">&lt;stream:stream
version='1.0' xmlns:stream='http://etherx.jabber.org/streams'
to='woody8.penza-gsm.ru' xmlns='jabber:client'&gt;</a><br>
DEBUG: socketšššššš gotšš &lt;?xml version='1.0'?&gt;<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'">&lt;stream:stream
xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client'
from='woody8.penza-gsm.ru' version='1.0'
id='rhy9t7csywfox353rspqqp0en1xbzn5q440ybcqa'&gt;</a><br>
DEBUG: socketšššššš gotšš <a class="moz-txt-link-rfc2396E" href="stream:featuresxmlns:stream='http://etherx.jabber.org/streams'">&lt;stream:features
xmlns:stream='http://etherx.jabber.org/streams'&gt;</a>&lt;bind
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-bind">urn:ietf:params:xml:ns:xmpp-bind</a>'/&gt;&lt;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>'/&gt;&lt;/<a class="moz-txt-link-freetext" href="stream:features">stream:features</a>&gt;<br>
DEBUG: socketšššššš sentš &lt;iq id='1' type='set'&gt;&lt;bind
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-bind">urn:ietf:params:xml:ns:xmpp-bind</a>' /&gt;&lt;/iq&gt;<br>
DEBUG: socketšššššš gotšš &lt;iq xmlns='<a class="moz-txt-link-freetext" href="jabber:client">jabber:client</a>' id='1'
type='result'&gt;&lt;bind
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-bind">urn:ietf:params:xml:ns:xmpp-bind</a>'&gt;&lt;jid&gt;<a class="moz-txt-link-abbreviated" href="mailto:test@woody8.penza-gsm.ru/219e900d0e8d92752040bcab4c71835e3884dd69">test@woody8.penza-gsm.ru/219e900d0e8d92752040bcab4c71835e3884dd69</a>&lt;/jid&gt;&lt;/bind&gt;&lt;/iq&gt;<br>
DEBUG: socketšššššš sentš &lt;iq id='2' type='get'&gt;&lt;query
xmlns='<a class="moz-txt-link-freetext" href="jabber:iq:roster">jabber:iq:roster</a>' /&gt;&lt;/iq&gt;<br>
DEBUG: socketšššššš sentš &lt;presence id='3' /&gt;<br>
DEBUG: socketšššššš gotšš <a class="moz-txt-link-rfc2396E" href="stream:errorxmlns:stream='http://etherx.jabber.org/streams'">&lt;stream:error
xmlns:stream='http://etherx.jabber.org/streams'&gt;</a>&lt;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>'/&gt;&lt;/<a class="moz-txt-link-freetext" href="stream:error">stream:error</a>&gt;<br>
================================<br>
It seems that I got another sort of error from now on. Subsequent run
(with wrong password):<br>
================================<br>
DEBUG: socketšššššš sentš &lt;?xml version='1.0'?&gt;<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'">&lt;stream:stream
version='1.0' xmlns:stream='http://etherx.jabber.org/streams'
to='woody8.penza-gsm.ru' xmlns='jabber:client'&gt;</a><br>
DEBUG: socketšššššš gotšš &lt;?xml version='1.0'?&gt;<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'">&lt;stream:stream
xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client'
from='woody8.penza-gsm.ru' version='1.0'
id='7oymrciubfrsd0dstfcww7eucqnlp94wy3jpf2kq'&gt;</a><br>
DEBUG: socketšššššš gotšš <a class="moz-txt-link-rfc2396E" href="stream:featuresxmlns:stream='http://etherx.jabber.org/streams'">&lt;stream:features
xmlns:stream='http://etherx.jabber.org/streams'&gt;</a>&lt;starttls
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-tls">urn:ietf:params:xml:ns:xmpp-tls</a>'/&gt;&lt;mechanisms
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-sasl">urn:ietf:params:xml:ns:xmpp-sasl</a>'&gt;&lt;mechanism&gt;DIGEST-MD5&lt;/mechanism&gt;&lt;mechanism&gt;PLAIN&lt;/mechanism&gt;&lt;/mechanisms&gt;&lt;/<a class="moz-txt-link-freetext" href="stream:features">stream:features</a>&gt;<br>
DEBUG: socketšššššš sentš &lt;starttls
xmlns=<a class="moz-txt-link-rfc2396E" href="urn:ietf:params:xml:ns:xmpp-tls">"urn:ietf:params:xml:ns:xmpp-tls"</a>/&gt;<br>
DEBUG: socketšššššš gotšš &lt;proceed
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-tls">urn:ietf:params:xml:ns:xmpp-tls</a>'/&gt;<br>
DEBUG: socketšššššš sentš &lt;?xml version='1.0'?&gt;<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'">&lt;stream:stream
version='1.0' xmlns:stream='http://etherx.jabber.org/streams'
to='woody8.penza-gsm.ru' xmlns='jabber:client'&gt;</a><br>
DEBUG: socketšššššš gotšš &lt;?xml version='1.0'?&gt;<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'">&lt;stream:stream
xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client'
from='woody8.penza-gsm.ru' version='1.0'
id='hbjucxn5cz287g3k7r5w0atydcose8jwk2qw0e2c'&gt;</a><br>
DEBUG: socketšššššš gotšš <a class="moz-txt-link-rfc2396E" href="stream:featuresxmlns:stream='http://etherx.jabber.org/streams'">&lt;stream:features
xmlns:stream='http://etherx.jabber.org/streams'&gt;</a>&lt;mechanisms
xmlns='<a class="moz-txt-link-freetext" href="urn:ietf:params:xml:ns:xmpp-sasl">urn:ietf:params:xml:ns:xmpp-sasl</a>'&gt;&lt;mechanism&gt;DIGEST-MD5&lt;/mechanism&gt;&lt;mechanism&gt;PLAIN&lt;/mechanism&gt;&lt;/mechanisms&gt;&lt;/<a class="moz-txt-link-freetext" href="stream:features">stream:features</a>&gt;<br>
DEBUG: socketšššššš sentš &lt;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'&gt;dGVzdEB3b29keTgucGVuemEtZ3NtLnJ1AHRlc3QAdGVzdHJmZ3JlZw==\n&lt;/auth&gt;<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>