HADOOP-7272. Remove unnecessary security related info logs. Contributed by Suresh Srinivas.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1101668 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Suresh Srinivas 2011-05-10 22:24:23 +00:00
parent a5290c9eca
commit c0d70530b1
2 changed files with 9 additions and 3 deletions

View File

@ -133,6 +133,8 @@ Trunk (unreleased changes)
HADOOP-7271. Standardize shell command error messages. (Daryn Sharp
via szetszwo)
HADOOP-7272. Remove unnecessary security related info logs. (suresh)
OPTIMIZATIONS
BUG FIXES

View File

@ -1059,12 +1059,16 @@ public Object run() throws SaslException {
null);
}
if (saslServer.isComplete()) {
LOG.info("SASL server context established. Negotiated QoP is "
+ saslServer.getNegotiatedProperty(Sasl.QOP));
if (LOG.isDebugEnabled()) {
LOG.debug("SASL server context established. Negotiated QoP is "
+ saslServer.getNegotiatedProperty(Sasl.QOP));
}
String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
user = getAuthorizedUgi(saslServer.getAuthorizationID());
LOG.info("SASL server successfully authenticated client: " + user);
if (LOG.isDebugEnabled()) {
LOG.debug("SASL server successfully authenticated client: " + user);
}
rpcMetrics.authenticationSuccesses.inc();
AUDITLOG.info(AUTH_SUCCESSFULL_FOR + user);
saslContextEstablished = true;