Skip to content

Catch FileNotFoundError in kerberos.has_credential

Duncan Macleod requested to merge kerberos-no-klist into main

This PR updates ciecplib.kerberos.has_credential() to catch the case where klist isn't found on the system at all and return False. It might be worth adding a new return of None ('credential status unknown') in the future to evaluate as 'falsy' but be distinguishable from an actual False ('credential known to be not present').

Merge request reports