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

Co-authored-by: ahussein <ahmed.hussein@verizonmedia.com>
This commit is contained in:
Ahmed Hussein 2020-11-09 14:05:08 -06:00 committed by GitHub
parent ae7b00a998
commit 1ea3f74246
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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