But was unable to connect....
1 2 if not challenge['realm'] or not challenge['qop'] or not challenge['nonce']: KeyError: u'realm'
Looking at protocol http://xmpp.org/rfcs/rfc3920.html#sasl the function handler_sasl_digest_md5_auth was not handling 2 essential steps:
"Step 7: Server sends another [BASE64] encoded challenge to client:"
and
"Step 8: Client responds to the challenge:"
Solution:
1 | self.sendPriorityRaw("""<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>%s</response>""" %base64.encodestring(response)[:-1]) |
No comments:
Post a Comment