Working with user groups from a LDAP external directory
You don’t explicitly add remote users to PE. Instead, after the external directory service has been successfully connected, remote users must log into PE, which creates their user record.
If the user belongs to an external directory group that has been imported into PE and then assigned to a role, the user is assigned to that role and gains the privileges of the role. Roles are additive: You can assign users to more than one role, and they gain the privileges of all the roles to which they are assigned.
Import a user group from an external directory service
You import existing external directory groups to PE explicitly, which means you add the group by name.
Troubleshooting: A PE user and user group have the same name
If you have both a PE user and an external directory user group with the exact same name, PE throws an error when you try to log on as that user or import the user group.
To work around this problem, you can change your settings to use different RDNs for users and groups. This works as long as all of your users are contained under one RDN that is unique from the RDN that contains all of your groups.
Assign a user group to a user role
After you’ve imported a group, you can assign it a user role, which gives each group member the permissions associated with that role. You can add user groups to existing roles, or you can create a new role, and then add the group to the new role.
- In the console, on the Access control page, click the User roles tab.
- Click the role you want to add the user group to.
- Click Member groups. In the Group name field, select the user group you want to add to the user role.
- Click Add group, and commit changes.
Delete a user group
You can delete a user group in the console. Users who were part of the deleted group lose the permissions associated with roles assigned to the group.
Removing a remote user’s access to PE
In order to fully revoke the remote user's access to Puppet Enterprise, you must also remove the user from the external directory groups accessed by PE.
Deleting a remote user's PE account does not automatically prevent that user from accessing PE in the future. So long as the remote user is still a member of a group in an external directory that PE is configured to access, the user retains the ability to log into PE.
If you delete a user from your LDAP external directory service but not from PE, the user can no longer log in. However, any generated
tokens or existing console sessions remain valid until they expire or are revoked by
automatic LDAP synchronization, which is controlled by the ldap_sync_period_seconds
parameter. For information about modifying this
parameter, see Console and console-services parameters.
To manually invalidate the user's tokens or sessions, you must revoke the user's PE account, which also automatically revokes all tokens for the user. You must manually delete the user for their account record to disappear.