incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmytro Sen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-3620) Ambari server setup-security kerberos jaas configuration accepts directory path as keytab path
Date Wed, 30 Oct 2013 12:28:25 GMT

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

Dmytro Sen updated AMBARI-3620:
-------------------------------

    Attachment: AMBARI-3620_branch_1.4.2.patch
                AMBARI-3620.patch

Added check if provided path isn't a directory. Added unittests.
The patch attached. 

Manual testing example:
{noformat}
[root@c ~]# ambari-server setup-security
Using python  /usr/bin/python2.6
Security setup options...
===========================================================================
Choose one of the following options: 
  [1] Enable HTTPS for Ambari server.
  [2] Enable HTTPS for Ganglia service.
  [3] Enable HTTPS for Nagios service.
  [4] Encrypt passwords stored in ambari.properties file.
  [5] Setup Ambari kerberos JAAS configuration.
===========================================================================
Enter choice, (1-5): 5
Setting up Ambari kerberos JAAS configuration to access secured Hadoop daemons...
Enter ambari server's kerberos principal name (ambari@EXAMPLE.COM): 
Enter keytab path for ambari server's kerberos principal: /etc/
Invalid path, please provide the absolute file path.
Enter keytab path for ambari server's kerberos principal: /etc
Invalid path, please provide the absolute file path.
Enter keytab path for ambari server's kerberos principal: ///
Invalid path, please provide the absolute file path.
Enter keytab path for ambari server's kerberos principal: /etc/security/keytabs/xxx.keytab
Ambari Server 'setup-security' completed successfully.
[root@c ~]#
{noformat}

> Ambari server setup-security kerberos jaas configuration accepts directory path as keytab
path
> ----------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-3620
>                 URL: https://issues.apache.org/jira/browse/AMBARI-3620
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 1.4.1
>            Reporter: Dmytro Sen
>            Assignee: Dmytro Sen
>             Fix For: 1.4.2
>
>         Attachments: AMBARI-3620_branch_1.4.2.patch, AMBARI-3620.patch
>
>
> ambari-server setup-security kerberos jaas configuration asks for keytab path and does
validation if it's a valid path. This validation should check if its a valid file path.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message