---------- Forwarded message ----------
From: Aneela Saleem <[email protected]>
Date: Sun, Aug 23, 2015 at 3:04 AM
Subject: Hadoop group mapping LDAP integration
To: [email protected]
Hi all,
I'm trying to sync ldap users and groups into my HDFS. It was working well
with ldap:/// but when i switched to ldaps:/// ( LDAP over ssl ) it shows
no groups when i run 'hdfs groups username' command. Attached is my
core-site.xml file.
Can anyone please look at this and guide me what i'm missing?
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. See accompanying LICENSE file.
-->
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
<property>
<name>hadoop.security.group.mapping</name>
<value>org.apache.hadoop.security.LdapGroupsMapping</value>
</property>
<property>
<name>hadoop.security.group.mapping.ldap.bind.user</name>
<value>cn=admin,dc=platalytics,dc=com</value>
</property>
<property>
<name>hadoop.security.group.mapping.ldap.bind.password</name>
<value>123</value>
</property>
<property>
<name>hadoop.security.group.mapping.ldap.url</name>
<value>ldaps://127.0.0.1:636/dc=platalytics,dc=com</value>
</property>
<property>
<name>hadoop.security.group.mapping.ldap.url</name>
<value>ldaps://127.0.0.1:636/dc=platalytics,dc=com</value>
</property>
<property>
<name>hadoop.security.group.mapping.ldap.ssl</name>
<value>true</value>
</property>
<property>
<name>hadoop.security.group.mapping.ldap.ssl.keystore</name>
<value>/etc/ldap/cacert.pem</value>
</property>
<property>
<name>hadoop.security.group.mapping.ldap.base</name>
<value></value>
</property>
<property>
<name>hadoop.security.group.mapping.ldap.search.filter.user</name>
<value>(&(|(objectclass=user)(objectclass=person)(objectclass=applicationProcess))(cn={0}))</value>
</property>
<property>
<name>hadoop.security.group.mapping.ldap.search.filter.group</name>
<value>(objectclass=groupOfNames)</value>
</property>
<property>
<name>hadoop.security.group.mapping.ldap.search.attr.member</name>
<value>member</value>
</property>
<property>
<name>hadoop.security.group.mapping.ldap.search.attr.group.name</name>
<value>cn</value>
</property>
</configuration>