Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

trailing whitespace during sasl with jabberd2 #25

Closed
Jajcus opened this issue May 3, 2011 · 1 comment
Closed

trailing whitespace during sasl with jabberd2 #25

Jajcus opened this issue May 3, 2011 · 1 comment

Comments

@Jajcus
Copy link
Owner

Jajcus commented May 3, 2011

on client connect with pyxmpp to a jabberd2 server, a "no nonce" error ococurs.

this is because the parser returns " charset" " user" and so one...
the simple strimcompare fails.
I add a small strip.
I dont know if this breaks something: but it works.

I already build at the ComponentStream...
(with an very old version I hacked component 2.0 support in)
(but with current this doenst work - i will expect this later)

patch:

Index: pyxmpp/sasl/digest_md5.py

--- pyxmpp/sasl/digest_md5.py (Revision 677)
+++ pyxmpp/sasl/digest_md5.py (Arbeitskopie)
@@ -254,6 +254,7 @@
var=m.group("var")
val=m.group("val")
self.__logger.debug("%r: %r" % (var,val))

  •       var=var.lstrip(' ');
         if var=="realm":
             realms.append(_unquote(val))
         elif var=="nonce":
    

Questions(jabber*G): white at addoma.de

@Jajcus
Copy link
Owner Author

Jajcus commented May 3, 2011

Fixed in changeset [679]

--http://openid.jajcus.net/jajcus/

@Jajcus Jajcus closed this as completed May 3, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant