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 "Wei-Chiu Chuang (JIRA)" <ji...@apache.org> on 2016/03/02 23:40:18 UTC

[jira] [Updated] (HADOOP-12862) LDAP Group Mapping over SSL can not specify trust store

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

Wei-Chiu Chuang updated HADOOP-12862:
-------------------------------------
    Attachment: HADOOP-12862.001.patch

Attaching an initial patch. This patch straightforwardly specifies truststore file path and password, and added the config in core-default.xml

Looking forward, I should also update docs (GroupsMapping.md which will be added in HADOOP-12793) and might also refactor the code a bit.

> LDAP Group Mapping over SSL can not specify trust store
> -------------------------------------------------------
>
>                 Key: HADOOP-12862
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12862
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Wei-Chiu Chuang
>            Assignee: Wei-Chiu Chuang
>         Attachments: HADOOP-12862.001.patch
>
>
> In a secure environment, SSL is used to encrypt LDAP request for group mapping resolution.
> We (+[~yoderme], +[~tgrayson]) have found that its implementation is strange.
> For information, Hadoop name node, as an LDAP client, talks to a LDAP server to resolve the group mapping of a user. In the case of LDAP over SSL, a typical scenario is to establish one-way authentication (the client verifies the server's certificate is real) by storing the server's certificate in the client's truststore.
> A rarer scenario is to establish two-way authentication: in addition to store truststore for the client to verify the server, the server also verifies the client's certificate is real, and the client stores its own certificate in its keystore.
> However, the current implementation for LDAP over SSL does not seem to be correct in that it only configures keystore but no truststore (so LDAP server can verify Hadoop's certificate, but Hadoop may not be able to verify LDAP server's certificate)
> I think there should an extra pair of properties to specify the truststore/password for LDAP server, and use that to configure system properties {{javax.net.ssl.trustStore}}/{{javax.net.ssl.trustStorePassword}}
> I am a security layman so my words can be imprecise. But I hope this makes sense.
> Oracle's SSL LDAP documentation: http://docs.oracle.com/javase/jndi/tutorial/ldap/security/ssl.html
> JSSE reference guide: http://docs.oracle.com/javase/7/docs/technotes/guides/security/jsse/JSSERefGuide.html



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