summaryrefslogtreecommitdiff
path: root/sleekxmpp/util
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2014-05-16 08:43:26 -0700
committerLance Stout <lancestout@gmail.com>2014-05-16 08:43:26 -0700
commit6ecc39b816b3ebf67922939748323164e89672d9 (patch)
treef1f718459f4bda68b02b96fbea7633d8f4f36617 /sleekxmpp/util
parentef2f5d29788218f679cd878e4e25bbd61545fef4 (diff)
parenta918bf3a95f9accc7272edea4fe4fdab705a0b17 (diff)
downloadslixmpp-6ecc39b816b3ebf67922939748323164e89672d9.tar.gz
slixmpp-6ecc39b816b3ebf67922939748323164e89672d9.tar.bz2
slixmpp-6ecc39b816b3ebf67922939748323164e89672d9.tar.xz
slixmpp-6ecc39b816b3ebf67922939748323164e89672d9.zip
Merge pull request #292 from 4gra/develop
Fix support for jabberd2 with GSSAPI
Diffstat (limited to 'sleekxmpp/util')
-rw-r--r--sleekxmpp/util/sasl/mechanisms.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sleekxmpp/util/sasl/mechanisms.py b/sleekxmpp/util/sasl/mechanisms.py
index 36fcb928..d341ed3e 100644
--- a/sleekxmpp/util/sasl/mechanisms.py
+++ b/sleekxmpp/util/sasl/mechanisms.py
@@ -532,6 +532,9 @@ else:
result = kerberos.authGSSClientStep(self.gss, b64_challenge)
if result != kerberos.AUTH_GSS_CONTINUE:
self.step = 1
+ elif not challenge:
+ kerberos.authGSSClientClean(self.gss)
+ return b''
elif self.step == 1:
username = self.credentials['username']
@@ -541,7 +544,7 @@ else:
resp = kerberos.authGSSClientResponse(self.gss)
except kerberos.GSSError as e:
- raise SASLCancelled('Kerberos error: %s' % e.message)
+ raise SASLCancelled('Kerberos error: %s' % e)
if not resp:
return b''
else: