You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Robert Levas (JIRA)" <ji...@apache.org> on 2015/01/21 23:37:34 UTC

[jira] [Updated] (AMBARI-9244) JAAS configuration file parser leaves trailing quote in quoted values

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

Robert Levas updated AMBARI-9244:
---------------------------------
    Attachment: AMBARI-9244_01.patch

Fixed regular expression to parse data lines from JAAS configuration files
Added unit test for JAAS configuration files.

Patch File [^AMBARI-9244_01.patch]

> JAAS configuration file parser leaves trailing quote in quoted values
> ---------------------------------------------------------------------
>
>                 Key: AMBARI-9244
>                 URL: https://issues.apache.org/jira/browse/AMBARI-9244
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-agent
>    Affects Versions: 2.0.0
>            Reporter: Robert Levas
>            Assignee: Robert Levas
>              Labels: kerberos, security
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-9244_01.patch
>
>
> The JAAS configuration file parser used in determining the security state of some components (like ZooKeeper and HBase) leaves trailing quote in quoted values. 
> For example:
> {code}
> Client {
> com.sun.security.auth.module.Krb5LoginModule required
> useKeyTab=true
> storeKey=true
> useTicketCache=false
> keyTab="/etc/security/keytabs/hbase.service.keytab"
> principal="hbase/vp-ambari-ranger-med-0120-2.cs1cloud.internal@EXAMPLE.COM";
> };
> {code}
> The value for {{keytab}} is being parsed as {{/etc/security/keytabs/hbase.service.keytab"}} rather than {{/etc/security/keytabs/hbase.service.keytab}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)