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

(cherry picked from commit bc7689abf5)
This commit is contained in:
Brahma Reddy Battula 2021-04-02 10:03:50 +05:30
parent c60e81b5a8
commit 90bbaca88b

View File

@ -1126,9 +1126,10 @@ static void loginUserFromKeytab(String user,
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());
}
/**