7.8. Troubleshooting federated authentication#
This section covers common problems you may encounter when configuring or using federated authentication. Each subsection describes a symptom, its likely cause, and steps to resolve it.
If you can’t find a solution here, review the logs of the relevant component first:
For sign-in failures, review the logs of the upstream IdP or IAM.
For UMC permission issues, review the Keycloak realm
ucsand the UMC policy on thefederated_accountscontainer.For missing roles, review the token content using the Keycloak Admin Console.
7.8.1. Sign-in fails#
The upstream IdP handles sign-in. If the sign-in process fails before the upstream IdP redirects the browser back to Nubus, review the logs of the upstream IAM or identity provider.
After a successful sign-in,
Nubus creates a users/federated_account object.
You can verify this with the command in
Listing 7.6
and the output similar to
Listing 7.7.
If Nubus creates no object, verify the attribute mapping for nubus_id.
$ udm users/federated_account list
DN: univentionObjectIdentifier=4f0fdab5-2979-4b25-87b7-5ecdf623547e,cn=federated_accounts,cn=univention,{ldap_base}
description: None
preferred_username: None
univentionObjectIdentifier: 4f0fdab5-2979-4b25-87b7-5ecdf623547e
7.8.2. No management modules are visible after sign-in#
If the sign-in succeeds but no management modules are visible, the federated account has no UMC permissions.
Verify that the federated_accounts container has a UMC policy attached
and that it allows access to the required modules.
See the example configuration in Listing 7.8.
DN: cn=federated_accounts,cn=univention,{ldap_base}
type: container/cn
univentionPolicyReference: cn=organizational-unit-admins,cn=UMC,cn=policies,{ldap_base}
DN: cn=organizational-unit-admins,cn=UMC,cn=policies,{ldap_base}
type: policies/umc
allow: cn=udm-all,cn=operations,cn=UMC,cn=univention,{ldap_base}