- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
HDFS LDAP with openldap only shows primary group
Created on ‎03-08-2021 06:55 AM - edited ‎09-16-2022 07:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I've recently set up HDFS with LDAP group mapping, I'm doing it through the cloudera manager, CDH6.3. Everything looks like it was working, i can see the hdfs does recognize my ldap users and the groups, but it doesn't show all the groups my ldap user belongs to, it only shows the primary group. As you can see from below, my ldap user "jchiang" is in primary group testgroup and secondary group red, but the hdfs only shows testgroup. I'm using openldap as my ldap directory. Is there a way to get all the ldap groups show up? I've included my hdfs ldap config below, I assume maybe there's something in the group filter i need to change? thanks
[jchiang@ip-172-0-0-203 ~]$ hdfs groups
jchiang : testgroup
[jchiang@ip-172-0-0-203 ~]$ groups
testgroup red
Created ‎10-05-2021 01:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i see you are using a posix lookup which by default returns only one/first group. Make the below changes to get the group results with a single lookup query.
Please make below change
hadoop.security.group.mapping.ldap.search.filter.user: uid={0}
hadoop.security.group.mapping.ldap.search.filter.group: (&(objectclass=posixGroup)(memberUid={0}))
-Raj
