[
https://issues.apache.org/jira/browse/HADOOP-11176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14163811#comment-14163811
]
Charles Lamb commented on HADOOP-11176:
---------------------------------------
[~asuresh],
Just two nits.
This change:
{noformat}
final String doAsUser = (currentUgi.getAuthenticationMethod() ==
UserGroupInformation.AuthenticationMethod.PROXY)
? currentUgi.getShortUserName() : null;
{noformat}
seems to be a whitespace only change.
This change:
{noformat}
return authUrl.openConnection(
url,
authToken, doAsUser);
{noformat}
seems to be an extraneous reformatting.
> KMSClientProvider authentication fails when when both currentUgi and loginUgi
> is a proxied user
> -----------------------------------------------------------------------------------------------
>
> Key: HADOOP-11176
> URL: https://issues.apache.org/jira/browse/HADOOP-11176
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Arun Suresh
> Attachments: HADOOP-11176.1.patch
>
>
> In a secure environment, with kerberos, when the KMSClientProvider instance
> is created in the context of a proxied user, The initial SPNEGO handshake is
> made with the currentUser (the proxied user) as the Principal.. this will
> fail, since the proxied user is not logged in.
> The handshake must be done using the real user.
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)