Show the krb principal name in debug log

This may help users realize when they are trying to authenticate
with the wrong ticket.
This commit is contained in:
Mike McLean 2018-03-20 10:41:19 -04:00
parent 87e23fa6c4
commit c246f719b8

View file

@ -2149,6 +2149,7 @@ class ClientSession(object):
# We're trying to log ourself in. Connect using existing credentials.
cprinc = ccache.principal()
self.logger.debug('Authenticating as: %s', cprinc.name)
sprinc = krbV.Principal(name=self._serverPrincipal(cprinc), context=ctx)
ac = krbV.AuthContext(context=ctx)