8272674: Logging missing keytab file in Krb5LoginModule

Reviewed-by: coffeys
This commit is contained in:
Weijun Wang 2021-08-19 19:02:22 +00:00
parent 51c1b9a687
commit 9569159d25

View File

@ -101,9 +101,15 @@ public class KeyTab implements KeyTabConstants {
} catch (FileNotFoundException e) {
entries.clear();
isMissing = true;
if (DEBUG) {
System.out.println("Cannot load keytab " + tabName + ": " + e);
}
} catch (Exception ioe) {
entries.clear();
isValid = false;
if (DEBUG) {
System.out.println("Cannot load keytab " + tabName + ": " + ioe);
}
}
}