You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "peng.jianhua (JIRA)" <ji...@apache.org> on 2017/07/09 06:35:00 UTC

[jira] [Resolved] (RANGER-1677) Unable to login to Hadoop environment after opened Kerberos.

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

peng.jianhua resolved RANGER-1677.
----------------------------------
    Resolution: Not A Problem

> Unable to login to Hadoop environment after opened Kerberos.
> ------------------------------------------------------------
>
>                 Key: RANGER-1677
>                 URL: https://issues.apache.org/jira/browse/RANGER-1677
>             Project: Ranger
>          Issue Type: Bug
>          Components: plugins
>            Reporter: peng.jianhua
>            Assignee: peng.jianhua
>              Labels: newbie, patch
>         Attachments: 0001-RANGER-1677-Unable-to-login-to-Hadoop-environment-af.patch, pic1.png
>
>
> The BaseClient class used following code to login user.
> String encryptedPwd = configHolder.getPassword();
> String password = PasswordUtils.decryptPassword(encryptedPwd);
> if ( configHolder.isKerberosAuthentication() ) {
>     LOG.info("Init Login: using username/password");
>     loginSubject = SecureClientLogin.loginUserWithPassword(userName, password);
> }
> else {
>     LOG.info("Init Login: security not enabled, using username");
>     loginSubject = SecureClientLogin.login(userName);
> }
> But the encrypt function was removed by RANGER-1571 in HadoopConfigHolder class. 
> -			String plainTextPwd = prop.getProperty(RANGER_LOGIN_PASSWORD);
> -			try {
> -				password = PasswordUtils.encryptPassword(plainTextPwd);
> -			} catch (IOException e) {
> -				throw new HadoopException("Unable to initialize login info", e);
> -			}
> -
> +                        password = prop.getProperty(RANGER_LOGIN_PASSWORD);
> Please refer to pic1.png.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)