Ver Fonte

HADOOP-17360. Log the remote address for authentication success (#2441)

Co-authored-by: ahussein <ahmed.hussein@verizonmedia.com>
Ahmed Hussein há 4 anos atrás
pai
commit
1ea3f74246

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java

@@ -2043,7 +2043,7 @@ public abstract class Server {
             LOG.debug("SASL server successfully authenticated client: " + user);
           }
           rpcMetrics.incrAuthenticationSuccesses();
-          AUDITLOG.info(AUTH_SUCCESSFUL_FOR + user);
+          AUDITLOG.info(AUTH_SUCCESSFUL_FOR + user + " from " + toString());
           saslContextEstablished = true;
         }
       } catch (RpcServerException rse) { // don't re-wrap