HADOOP-17587. Kinit with keytab should not display the keytab file's full path in any logs. Contributed by Ravuri Sushma sree.

This commit is contained in:
Brahma Reddy Battula 2021-04-02 10:03:50 +05:30
parent 478402cc74
commit bc7689abf5
1 changed files with 4 additions and 3 deletions

View File

@ -1125,9 +1125,10 @@ public class UserGroupInformation {
setLoginUser(u);
LOG.info("Login successful for user {} using keytab file {}. Keytab auto" +
" renewal enabled : {}",
user, path, isKerberosKeyTabLoginRenewalEnabled());
LOG.info(
"Login successful for user {} using keytab file {}. Keytab auto"
+ " renewal enabled : {}",
user, new File(path).getName(), isKerberosKeyTabLoginRenewalEnabled());
}
/**