Skip to content

Locked properties do not work with non-enumerated groups

Submitted by Robin McCorkell

Assigned to Brian J. Tarricone

Link to original bug (#10901)

Description

When checking a property locked/unlocked for a certain group, xfconf_user_is_in_group() enumerates through all visible groups to generate a cache (xfconf_ensure_group_cache()) which is then searched for the group, then the group members. However, this does not work when the group is not enumerated by getgrent(), such as LDAP with enumeration turned off or various other identity providers.

A possible solution is to use getgrouplist(), the output of which can be searched to see if a user is a member of a certain group.

Version: GIT Master