I want to initialize a Kerberos context in default ccache, which is specified by KRB5CCNAME.
For example,
import os
os.environ['KRB5CCNAME'] = '/tmp/mycc'
with krbContext(using_keytab=True, principal='...', keytab_file='...'):
import subprocess
subprocess.call(['klist'])
Credential cannot be acquired in ccache /tmp/mycc, and error is raised
GSSError: Major (851968): Unspecified GSS failure. Minor code may provide more information, Minor (39756032): Principal in credential cache does not match desired name
User story
I want to initialize a Kerberos context in default ccache, which is specified by
KRB5CCNAME
.For example,
Credential cannot be acquired in ccache
/tmp/mycc
, and error is raisedGSSError: Major (851968): Unspecified GSS failure. Minor code may provide more information, Minor (39756032): Principal in credential cache does not match desired name