Merge pull request #292 from 4gra/develop
Fix support for jabberd2 with GSSAPI
This commit is contained in:
commit
6ecc39b816
2 changed files with 6 additions and 1 deletions
|
@ -215,6 +215,8 @@ class FeatureMechanisms(BasePlugin):
|
|||
self.attempted_mechs.add(self.mech.name)
|
||||
self.xmpp.disconnect()
|
||||
else:
|
||||
if resp.get_value() == '':
|
||||
resp.del_value()
|
||||
resp.send(now=True)
|
||||
|
||||
def _handle_success(self, stanza):
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue