I am using LDAP to allow access to a Linux system. The users and groups are structured as follows:
- Groups and users are represented via
posixGroupandposixUser, respectively. - Each group corresponds to a research group.
- Each research group has a leader.
- The leader of a group may or may not be a user.
I would like to do the following:
- Set the
ownerattribute of each group to DN of the group leader. - Prevent the owner from having access unless also a user.
What is the best way to distinguish between users and owners? I see two possibilities:
- Use two OUs:
ou=usersandou=leaders. Leaders who are also users would appear in both groups. - (Mis-)Use an attribute:
employeeTypecan take multiple values, e.guser,leader, oruser,leader.
It seems that approach 1 would be easier to configure in sssd, but are there other pros and cons of the two approaches?