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:
parent
c107e75424
commit
d2ae8bcc66
|
@ -2033,7 +2033,7 @@ public abstract class Server {
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue