hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brahma Reddy Battula (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-13707) If kerberos is enabled while HTTP SPNEGO is not configured, some links cannot be accessed
Date Mon, 17 Oct 2016 13:07:59 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-13707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15582199#comment-15582199

Brahma Reddy Battula commented on HADOOP-13707:

[~eyang] As I mentioned above {{MetricsServlet.java}} changes are missed in branch-2 [Commit|https://github.com/apache/hadoop/commit/439422fff923ae6aea1f7547fe24d0e23fbd8f7f#commitcomment-19446926]
,Please have a look at latest patch uploaded by [~yuanbo] for branch-2 and branch-2.8..

May be you need revert from branch-2 and apply the latest patch for branch-2 OR prepare addedum
patch for only {{MetricsServlet.java}} changes.

> If kerberos is enabled while HTTP SPNEGO is not configured, some links cannot be accessed
> -----------------------------------------------------------------------------------------
>                 Key: HADOOP-13707
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13707
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Yuanbo Liu
>            Assignee: Yuanbo Liu
>              Labels: security
>             Fix For: 2.9.0, 3.0.0-alpha2
>         Attachments: HADOOP-13707-branch-2-addendum.patch, HADOOP-13707-branch-2.8.patch,
HADOOP-13707-branch-2.patch, HADOOP-13707.001.patch, HADOOP-13707.002.patch, HADOOP-13707.003.patch,
> In {{HttpServer2#hasAdministratorAccess}}, it uses `hadoop.security.authorization` to
detect whether HTTP is authenticated.
> It's not correct, because enabling Kerberos and HTTP SPNEGO are two steps. If Kerberos
is enabled while HTTP SPNEGO is not, some links cannot be accessed, such as "/logs", and it
will return error message as below:
> {quote}
> Problem accessing /logs/. Reason:
> User dr.who is unauthorized to access this page.
> {quote}
> We should make sure {{HttpServletRequest#getAuthType}} is not null before we invoke {{HttpServer2#hasAdministratorAccess}}.
> {{getAuthType}} means to get the authorization scheme of this request

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org

View raw message