HDFS-6823. dfs.web.authentication.kerberos.principal shows up in logs for insecure HDFS
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1616845 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
70d453602c
commit
6da830cfdf
|
@ -1668,9 +1668,11 @@ public class DFSUtil {
|
||||||
.setKeytabConfKey(getSpnegoKeytabKey(conf, spnegoKeytabFileKey));
|
.setKeytabConfKey(getSpnegoKeytabKey(conf, spnegoKeytabFileKey));
|
||||||
|
|
||||||
// initialize the webserver for uploading/downloading files.
|
// initialize the webserver for uploading/downloading files.
|
||||||
|
if (UserGroupInformation.isSecurityEnabled()) {
|
||||||
LOG.info("Starting web server as: "
|
LOG.info("Starting web server as: "
|
||||||
+ SecurityUtil.getServerPrincipal(conf.get(spnegoUserNameKey),
|
+ SecurityUtil.getServerPrincipal(conf.get(spnegoUserNameKey),
|
||||||
httpAddr.getHostName()));
|
httpAddr.getHostName()));
|
||||||
|
}
|
||||||
|
|
||||||
if (policy.isHttpEnabled()) {
|
if (policy.isHttpEnabled()) {
|
||||||
if (httpAddr.getPort() == 0) {
|
if (httpAddr.getPort() == 0) {
|
||||||
|
|
Loading…
Reference in New Issue