HADOOP-9358. "Auth failed" log should include exception string. Contributed by Todd Lipcon.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1461788 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4809bfa6ed
commit
fc0a4de670
|
@ -534,6 +534,8 @@ Release 2.0.5-beta - UNRELEASED
|
||||||
HADOOP-9318. When exiting on a signal, print the signal name first. (Colin
|
HADOOP-9318. When exiting on a signal, print the signal name first. (Colin
|
||||||
Patrick McCabe via atm)
|
Patrick McCabe via atm)
|
||||||
|
|
||||||
|
HADOOP-9358. "Auth failed" log should include exception string (todd)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
|
@ -1237,7 +1237,8 @@ public abstract class Server {
|
||||||
rpcMetrics.incrAuthenticationFailures();
|
rpcMetrics.incrAuthenticationFailures();
|
||||||
String clientIP = this.toString();
|
String clientIP = this.toString();
|
||||||
// attempting user could be null
|
// attempting user could be null
|
||||||
AUDITLOG.warn(AUTH_FAILED_FOR + clientIP + ":" + attemptingUser);
|
AUDITLOG.warn(AUTH_FAILED_FOR + clientIP + ":" + attemptingUser +
|
||||||
|
" (" + e.getLocalizedMessage() + ")");
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
if (saslServer.isComplete() && replyToken == null) {
|
if (saslServer.isComplete() && replyToken == null) {
|
||||||
|
|
Loading…
Reference in New Issue