HADOOP-11692. Improve authentication failure WARN message to avoid user confusion. Contributed by Yongjun Zhang.
This commit is contained in:
parent
42e3a80511
commit
de1101cb5b
@ -1070,6 +1070,9 @@ Release 2.7.0 - UNRELEASED
|
||||
HADOOP-11686. MiniKDC cannot change ORG_NAME or ORG_DOMAIN.
|
||||
(Duo Zhang via wheat9)
|
||||
|
||||
HADOOP-11692. Improve authentication failure WARN message to avoid user
|
||||
confusion. (Yongjun Zhang)
|
||||
|
||||
Release 2.6.1 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -1324,10 +1324,15 @@ private void saslProcess(RpcSaslProto saslMessage)
|
||||
saslResponse = processSaslMessage(saslMessage);
|
||||
} catch (IOException e) {
|
||||
rpcMetrics.incrAuthenticationFailures();
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug(StringUtils.stringifyException(e));
|
||||
}
|
||||
// attempting user could be null
|
||||
IOException tce = (IOException) getTrueCause(e);
|
||||
AUDITLOG.warn(AUTH_FAILED_FOR + this.toString() + ":"
|
||||
+ attemptingUser + " (" + e.getLocalizedMessage() + ")");
|
||||
throw (IOException) getTrueCause(e);
|
||||
+ attemptingUser + " (" + e.getLocalizedMessage()
|
||||
+ ") with true cause: (" + tce.getLocalizedMessage() + ")");
|
||||
throw tce;
|
||||
}
|
||||
|
||||
if (saslServer != null && saslServer.isComplete()) {
|
||||
|
Loading…
Reference in New Issue
Block a user