Skip to content

Commit 56e327b

Browse files
amahusseinahussein
authored andcommitted
HADOOP-17360. Log the remote address for authentication success (#2441)
Co-authored-by: ahussein <[email protected]> (cherry picked from commit 1ea3f74)
1 parent de9f778 commit 56e327b

File tree

1 file changed

+1
-1
lines changed
  • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2034,7 +2034,7 @@ private void saslProcess(RpcSaslProto saslMessage)
20342034
LOG.debug("SASL server successfully authenticated client: " + user);
20352035
}
20362036
rpcMetrics.incrAuthenticationSuccesses();
2037-
AUDITLOG.info(AUTH_SUCCESSFUL_FOR + user);
2037+
AUDITLOG.info(AUTH_SUCCESSFUL_FOR + user + " from " + toString());
20382038
saslContextEstablished = true;
20392039
}
20402040
} catch (RpcServerException rse) { // don't re-wrap

0 commit comments

Comments
 (0)