Describe the bug
Roles and usergroups are not loaded properly when using external auth with ldap backend.
To Reproduce:
- Create a user named
user on ldap backend.
- Create a usergroup named
users on ldap backend and add user as a member.
- Create a role named
readOnly, assign only the users group to it, and grant general module access to monitoring and icingadb.
- Ensure that the monitoring, icingadb, and cube (or graphite) modules are enabled.
- Enable external authentication.
- Log in using external authentication with the
user account.
-
Open a `monitoring` dashboard pane.
Icinga Web 2 shows the following error:
NOTICE: PHP message: icingaweb2: ERROR - Can't get group memberships for user 'user' from backend 'auth_ldap'. An exception was thrown: Icinga\Exception\ConfigurationError in /icingaweb2/library/Icinga/Authentication/User/UserBackend.php:74 with message: User backends not set up. Please contact your Icinga Web administrator
ref/IP/62220
Describe the bug
Roles and usergroups are not loaded properly when using external auth with
ldapbackend.To Reproduce:
useronldapbackend.usersonldapbackend and adduseras a member.readOnly, assign only theusersgroup to it, and grant general module access tomonitoringandicingadb.useraccount.Icinga Web 2 shows the following error:
ref/IP/62220