! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Locked properties do not work with non-enumerated groups
Status:
RESOLVED: MOVED

Comments

Description Robin McCorkell 2014-05-22 14:16:09 CEST
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.
Comment 1 Robin McCorkell 2014-05-22 14:20:44 CEST
Sorry, I just noticed that getgrouplist() is BSD-specific. Perhaps the initgroups_dyn() function (or similar) would be useful?
Comment 2 Steve Dodier-Lazaro editbugs 2015-02-16 20:46:04 CET
Retargeting this bug to 4.14.
Comment 3 Git Bot editbugs 2020-05-25 23:50:04 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfconf/-/issues/3.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #10901

Reported by:
Robin McCorkell
Reported on: 2014-05-22
Last modified on: 2020-05-25

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
1 user

Version

Version:
GIT Master

Attachments

Additional information