HADOOP-9339. IPC.Server incorrectly sets UGI auth type. Contributed by Daryn Sharp
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1450963 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
979fb054f8
commit
eb1cc863d2
@ -1382,6 +1382,9 @@ Release 0.23.7 - UNRELEASED
|
|||||||
HADOOP-9303. command manual dfsadmin missing entry for restoreFailedStorage
|
HADOOP-9303. command manual dfsadmin missing entry for restoreFailedStorage
|
||||||
option (Andy Isaacson via tgraves)
|
option (Andy Isaacson via tgraves)
|
||||||
|
|
||||||
|
HADOOP-9339. IPC.Server incorrectly sets UGI auth type (Daryn Sharp by
|
||||||
|
kihwal)
|
||||||
|
|
||||||
Release 0.23.6 - UNRELEASED
|
Release 0.23.6 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -1553,9 +1553,6 @@ private void processConnectionContext(byte[] buf) throws IOException {
|
|||||||
UserGroupInformation protocolUser = ProtoUtil.getUgi(connectionContext);
|
UserGroupInformation protocolUser = ProtoUtil.getUgi(connectionContext);
|
||||||
if (saslServer == null) {
|
if (saslServer == null) {
|
||||||
user = protocolUser;
|
user = protocolUser;
|
||||||
if (user != null) {
|
|
||||||
user.setAuthenticationMethod(AuthMethod.SIMPLE);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// user is authenticated
|
// user is authenticated
|
||||||
user.setAuthenticationMethod(authMethod);
|
user.setAuthenticationMethod(authMethod);
|
||||||
|
@ -180,7 +180,7 @@ public String run() throws IOException {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Assert.assertEquals(PROXY_USER_NAME + " (auth:SIMPLE) via " + REAL_USER_NAME + " (auth:SIMPLE)", retVal);
|
Assert.assertEquals(PROXY_USER_NAME + " (auth:PROXY) via " + REAL_USER_NAME + " (auth:SIMPLE)", retVal);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
Assert.fail();
|
Assert.fail();
|
||||||
@ -224,7 +224,7 @@ public String run() throws IOException {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Assert.assertEquals(PROXY_USER_NAME + " (auth:SIMPLE) via " + REAL_USER_NAME + " (auth:SIMPLE)", retVal);
|
Assert.assertEquals(PROXY_USER_NAME + " (auth:PROXY) via " + REAL_USER_NAME + " (auth:SIMPLE)", retVal);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
Assert.fail();
|
Assert.fail();
|
||||||
|
Loading…
Reference in New Issue
Block a user