[Samba] Group members via LDAP
Troels Arvin
troels at arvin.dk
Wed Feb 8 21:04:49 UTC 2023
Hello,
I wrote:
> Maybe I need to iterate over all users and collect a set of
> primaryGroupID values and then somehow look those up as groups; however,
> there doesn't seem to be a group attribute mathing values I see for
> primaryGroupID.
OK, so it looks like I need to iterate over all groups and explicitly
ask for primaryGroupToken to be part of the returned attributes.
The following code led me to something I can use:
https://varunver.wordpress.com/2018/03/07/php-ldap-authentication-and-getting-ldap-user-groups-for-user/
--
Troels Arvin
More information about the samba
mailing list