Subject: XMPP-SASL: plain text authentication fails
After changing unb_lib/jabber2.lib.php:
it works (cf. jingle client authentication error in jabber server).
The first change respects the `SHOULD NOT' in the specification (it does not read `MUST NOT').
- @@ -345,9 +345,9 @@
- # http://www.xmpp.org/extensions/attic/jep-0078-1.7.html
- # The plaintext mechanism SHOULD NOT be used unless the underlying stream is encrypted (using SSL or TLS)
- # and the client has verified that the server certificate is signed by a trusted certificate authority.
- + } else if (in_array('PLAIN', $methods)/* && (isset($this->session['ssl']) || isset($this->session['tls']))*/) {
- $this->send("<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>"
- "</auth>");
- $this->send("<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='ANONYMOUS'/>");
The first change respects the `SHOULD NOT' in the specification (it does not read `MUST NOT').
Alala, Alala, Gimme three wishes - CSS

jense
Show profile
Link to this post