Check ccache size before trying to use it
This commit is contained in:
parent
1a71dcef81
commit
e596ca6fcb
1 changed files with 4 additions and 0 deletions
|
|
@ -6617,6 +6617,10 @@ if __name__ == "__main__":
|
|||
if krb_principal is None:
|
||||
krb_principal = options.host_principal_format % socket.getfqdn()
|
||||
try:
|
||||
# Check ccache is not empty or authentication will fail
|
||||
if os.stat(options.ccache).st_size == 0:
|
||||
os.remove(options.ccache)
|
||||
|
||||
session.gssapi_login(principal=krb_principal,
|
||||
keytab=options.keytab,
|
||||
ccache=options.ccache)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue