You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Andras Bokor (JIRA)" <ji...@apache.org> on 2017/03/24 13:11:41 UTC

[jira] [Updated] (HADOOP-14229) hadoop.security.auth_to_local example is incorrect in the documentation

     [ https://issues.apache.org/jira/browse/HADOOP-14229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andras Bokor updated HADOOP-14229:
----------------------------------
    Description: 
Let's see jhs as example:
{code}RULE:[2:$1@$0](jhs/.*@.*REALM.TLD)s/.*/mapred/{code}
That means principal has 2 components (jhs/myhost@REALM).
The second column converts this to jhs@REALM. So the regex will not match on this since regex expects / in the principal.

My suggestion is
{code}RULE:[2:$1](jhs)s/.*/mapred/{code}

  was:
Let's see jhs as example:
{code}RULE:[2:$1@$0](jhs/.*@.*REALM.TLD)s/.*/mapred/{code}
That means principal has 2 components (jhs/myhost@REALM).
The second column converts this to jhs@REALM. So the regex will not match on this since regex expects / in the principal.
I am not sure what was the original intend here so I suggest two solutions:
{code}RULE:[2:$1/$2@$0](jhs/.*@REALM.TLD)s/.*/mapred/{code}
or
{code}RULE:[2:$1@$0](jhs@REALM.TLD)s/.*/mapred/{code}


> hadoop.security.auth_to_local example is incorrect in the documentation
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-14229
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14229
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Andras Bokor
>            Assignee: Andras Bokor
>            Priority: Trivial
>
> Let's see jhs as example:
> {code}RULE:[2:$1@$0](jhs/.*@.*REALM.TLD)s/.*/mapred/{code}
> That means principal has 2 components (jhs/myhost@REALM).
> The second column converts this to jhs@REALM. So the regex will not match on this since regex expects / in the principal.
> My suggestion is
> {code}RULE:[2:$1](jhs)s/.*/mapred/{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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