Users authenticated via external ldap contain no default context/location
|Assignee:||Daniel Lobato Garcia|
|Category:||Organizations and Locations|
|Triaged:||Fixed in Releases:|
|Bugzilla link:||1104822||Found in Releases:|
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1104822
Upon login using an 'external' user. The user cannot do anything. I've even attempted to specify an external group, but there is no context/location settings in the external group settings.
Fixes #6372 - User inherits taxonomies from LDAP on creation
In an installation that uses taxonomies, when an user logs in for
the first time and gets its account created via LDAP, it has no
This is a problem, as even if the user has all the roles it needs from
external user groups, an admin needs to manually set the taxonomies for
every new user.
This commit fixes that by assigning the taxonomies from the LDAP auth
source to the user when it logs in for the first time. It does not
update them on every login, as after the user has logged in, user
taxonomies are left to the Foreman administrator to manage.