lists.arthurdejong.org
RSS feed

Re: How to fetch all the groups for a user from Active Directory

[Date Prev][Date Next] [Thread Prev][Thread Next]

Re: How to fetch all the groups for a user from Active Directory



Hi

Reposting this question, after holidays :)

On Wed, 9 Dec, 2020, 8:36 PM varun mittal, <vmittal05 [at] gmail.com> wrote:
Hi

I am using 'nss-pam-ldapd-0.9.8-1' on CentOS 7.2 and have been struggling to find the correct nslcd.conf configuration to fetch all the groups for an Active Directory user.

I tried "nss_nested_groups yes" option too, but the nested group memberships via the 'Primary Group' are still left out.

Eg.
username: test_user
Primary Group: 'Domain Users'
Secondary Group: 'FirstLevelGroup'

The 'Domain Users' group is a member of another group, say X. Similarly 'FirstLevelGroup' is also a member of another group, say Y

'id test_user' returns 'Domain Users', 'FirstLevelGroup', 'Y'

The group 'X' is left out.

If I change the Primary Group to point to 'FirstLevelGroup', then group 'X' is included but 'Y' is left out.