[
https://issues.apache.org/jira/browse/AMBARI-14938?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Levas updated AMBARI-14938:
----------------------------------
Attachment: AMBARI-14938_trunk_01.patch
AMBARI-14938_branch-2.2_01.patch
> Some user-specified auth-to-local rules fail to render when auto generating
> auth-to-local rules
> -----------------------------------------------------------------------------------------------
>
> Key: AMBARI-14938
> URL: https://issues.apache.org/jira/browse/AMBARI-14938
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.1.0
> Reporter: Robert Levas
> Assignee: Robert Levas
> Labels: kerberos
> Fix For: 2.2.2
>
> Attachments: AMBARI-14938_branch-2.2_01.patch,
> AMBARI-14938_trunk_01.patch
>
>
> When processing the user-specified auth-to-local rules while automatically
> generating auth-to-local rule sets using
> {{org.apache.ambari.server.controller.AuthToLocalBuilder}}, some rules fail
> to render.
> This occurs when escape characters are used in the replacement pattern or
> replacement string of the rule, where a role looks like:
> {code}
> RULE: [n:string](regexp)s/pattern/replacement/[g]
> {code}
> To fix this issue, the regular expression used to parse the rules need to be
> augmented to allow for those characters.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)