HADOOP-7509. Improve exception message thrown when Authentication is required. Contributed by Ravi Prakash.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1182641 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
26d63ecdae
commit
3e6d128c83
@ -35,6 +35,9 @@ Trunk (unreleased changes)
|
||||
|
||||
HADOOP-7736. Remove duplicate Path#normalizePath call. (harsh)
|
||||
|
||||
HADOOP-7509. Improve exception message thrown when Authentication is
|
||||
required. (Ravi Prakash via suresh)
|
||||
|
||||
BUGS
|
||||
|
||||
HADOOP-7606. Upgrade Jackson to version 1.7.1 to match the version required
|
||||
@ -42,7 +45,8 @@ Trunk (unreleased changes)
|
||||
|
||||
HADOOP-7610. Fix for hadoop debian package (Eric Yang via gkesavan)
|
||||
|
||||
HADOOP-7641. Add Apache License to template config files (Eric Yang via atm)
|
||||
HADOOP-7641. Add Apache License to template config files.
|
||||
(Eric Yang via atm)
|
||||
|
||||
HADOOP-7621. alfredo config should be in a file not readable by users
|
||||
(Alejandro Abdelnur via atm)
|
||||
@ -50,8 +54,8 @@ Trunk (unreleased changes)
|
||||
HADOOP-7669 Fix newly introduced release audit warning.
|
||||
(Uma Maheswara Rao G via stevel)
|
||||
|
||||
HADOOP-6220. HttpServer wraps InterruptedExceptions by IOExceptions if interrupted
|
||||
in startup (stevel)
|
||||
HADOOP-6220. HttpServer wraps InterruptedExceptions by IOExceptions
|
||||
if interrupted in startup (stevel)
|
||||
|
||||
HADOOP-7703. Improved exception handling of shutting down web server.
|
||||
(Devaraj K via Eric Yang)
|
||||
@ -62,7 +66,8 @@ Trunk (unreleased changes)
|
||||
HADOOP-7695. RPC.stopProxy can throw unintended exception while logging
|
||||
error (atm)
|
||||
|
||||
HADOOP-7721. Add log before login in KerberosAuthenticationHandler. (jitendra)
|
||||
HADOOP-7721. Add log before login in KerberosAuthenticationHandler.
|
||||
(jitendra)
|
||||
|
||||
Release 0.23.0 - Unreleased
|
||||
|
||||
|
@ -1171,8 +1171,12 @@ public int readAndProcess() throws IOException, InterruptedException {
|
||||
throw new IOException("Unable to read authentication method");
|
||||
}
|
||||
if (isSecurityEnabled && authMethod == AuthMethod.SIMPLE) {
|
||||
AccessControlException ae = new AccessControlException(
|
||||
"Authentication is required");
|
||||
AccessControlException ae = new AccessControlException("Authorization ("
|
||||
+ CommonConfigurationKeys.HADOOP_SECURITY_AUTHENTICATION
|
||||
+ ") is enabled but authentication ("
|
||||
+ CommonConfigurationKeys.HADOOP_SECURITY_AUTHORIZATION
|
||||
+ ") is configured as simple. Please configure another method "
|
||||
+ "like kerberos or digest.");
|
||||
setupResponse(authFailedResponse, authFailedCall, Status.FATAL,
|
||||
null, ae.getClass().getName(), ae.getMessage());
|
||||
responder.doRespond(authFailedCall);
|
||||
|
Loading…
Reference in New Issue
Block a user