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

Co-authored-by: ahussein <ahmed.hussein@verizonmedia.com>
(cherry picked from commit 1ea3f74246)
This commit is contained in:
Ahmed Hussein 2020-11-09 14:05:08 -06:00 committed by Jim Brennan
parent bc634c077b
commit df4edb99f7
1 changed files with 1 additions and 1 deletions

View File

@ -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