Implement GSSAPI login

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2016-10-26 21:28:59 +00:00 committed by Mike McLean
parent 06f8d24967
commit 480cdfb540
4 changed files with 64 additions and 13 deletions

View file

@ -6968,6 +6968,8 @@ def handle_moshimoshi(options, session, args):
authtype = u.get('authtype', getattr(session, 'authtype', None))
if authtype == koji.AUTHTYPE_NORMAL:
print "Authenticated via password"
elif authtype == koji.AUTHTYPE_GSSAPI:
print "Authenticated via GSSAPI"
elif authtype == koji.AUTHTYPE_KERB:
print "Authenticated via Kerberos principal %s" % u["krb_principal"]
elif authtype == koji.AUTHTYPE_SSL: