Email Us |TEL: 050-1720-0641 | LinkedIn | Daily Posts

Mintarc
  Mintarc Forge   Contact Us   News Letter   Blog   Partners
Collaboration Questions? Monthly Letter Monthly Blog Our Partners

Keycloak and Nubus

As we know already Nubus is the identity and access management platform built to centralize user directories, portals, and application access across enterprise and public-sector environments. Rather than maintaining proprietary authentication engines, Univention embeds Keycloak as its primary Identity Provider. Within Nubus for UCS as well as Nubus for Kubernetes, Keycloak acts as the authentication gateway, bridging the underlying OpenLDAP directory with web applications and legacy domain infrastructure. Consolidating authentication around a dedicated ucs realm inside Keycloak, admins replace fragmented login prompts with a single, standards-compliant SSO architecture.

Directory Integration and Attribute Mapping

Before Keycloak can issue tokens or assertions for any protocol, it must establish authoritative awareness of user accounts and group memberships. In Nubus, Keycloak connects directly to the UCS LDAP directory as its identity backend. When a user authenticates for the first time, Keycloak imports identity attributes from OpenLDAP into its internal representation. By default, the Univention Keycloak integration maps directory fields such as uid to both username and uid, entryUUID to entryUUID, lastname to lastName, mailPrimaryAddress to email, and givenName to firstName, alongside creation and modification timestamps.

Because enterprise applications need user metadata, Univention provides administrative tooling to extend this synchronization. Through either the Keycloak Admin Console or the univention-keycloak command-line utility, administrators create custom LDAP attribute mappers that pull additional fields such as organizational descriptions or department identifiers from the directory. Once imported into the ucs realm, these attributes become available to protocol-specific mappers that inject claims into OpenID Connect tokens or attributes into SAML assertions, making sure downstream applications receive accurate authorization context without querying LDAP directly.

OIDC Provider Architecture

For many web applications, single-page apps, and mobile clients, Nubus Uses Keycloak as an OpenID Connect Provider. OIDC has a JSON- and REST-based authentication layer built on top of OAuth 2.0, good protocol for contemporary cloud-native and self-hosted software. Within the ucs realm, each integrated application is registered as an OIDC Relying Party with a client identifier, root URL, and access type usually configured as confidential when the application securely stores a client secret on its backend.

Univention streamlines OIDC onboarding through both graphical workflows and automated CLI commands. Administrators can retrieve the realm's public signing certificate in PEM format or query the standard .well-known/openid-configuration discovery endpoint so relying parties automatically configure their authorization, token, and userinfo URLs. Using the univention-keycloak oidc/rp create command, teams can script client registrations in bulk, binding specific client scopes to control exactly which identity claims are exposed to each service. When a user accesses an OIDC-enabled service, the browser redirects to the Nubus Keycloak endpoint ucs-sso-ng, validates the session, and returns signed ID and access tokens to the application.

SAML 2.0 Identity Provider

Enterprise environments rely on SAML 2.0 for established collaboration suites, academic portals, and federated partner networks. In Nubus, Keycloak is used as the central SAML 2.0 Identity Provider, replacing older SimpleSAMLphp components used in earlier UCS releases. In fact, the Univention Portal itself authenticates administrators and end users through SAML 2.0 by pointing the umc/saml/idp-server registry variable to Keycloak's SAML descriptor URL and enabling the login-saml portal entry.

Using third-party SAML Service Providers follows a similarly structured workflow. Admins register each SAML client inside the ucs realm either manually in the Admin Console or via the univention-keycloak saml/sp create command by supplying the application's metadata URL. Keycloak handles XML metadata exchange, enforces cryptographic signature verification using X.509 certificates, and translates mapped LDAP attributes and Univention Directory Manager groups into SAML assertions. Keycloak supports Single Logout and external identity brokering, enabling Nubus to federate with outside SAML identity providers such as Active Directory Federation Services using custom authentication flows and the univention-authenticator execution.

Kerberos Bridge for Desktop SSO

To remove repetitive password prompts on domain-joined workstations, Nubus integrates Kerberos authentication directly into Keycloak's browser authentication flows. In environments running Samba Active Directory-compatible domain controllers on UCS, desktop clients obtain a Kerberos Ticket Granting Ticket on operating system sign-in. When a user opens a web browser and navigates to any OIDC or SAML application protected by Nubus, Keycloak acts as a Kerberos bridge. Through SPNEGO negotiation, the browser transparently passes a Kerberos service ticket to Keycloak, which validates the ticket against the domain's keytab and immediately issues the appropriate OIDC token or SAML assertion without displaying a login form.

Because unauthenticated Kerberos negotiation prompts can cause disruptive browser pop-ups for remote workers or unmanaged devices outside the corporate LAN, the Univention Keycloak documentation provides network controls. Admins can restrict Kerberos authentication to specific internal IP subnets within custom authentication flows. Devices connecting from trusted office subnets authenticate silently via Kerberos, whereas external clients fall back to standard username-and-password forms, passkeys, or time-based one-time password two-factor authentication.

Access Governance

Centralizing OIDC, SAML 2.0, and Kerberos authentication inside Keycloak also helps resilience and policy enforcement across the Nubus domain. Admins can deploy the Keycloak app across multiple UCS nodes behind the ucs-sso-ng domain name, enabling automatic session synchronization and failover if an individual node undergoes maintenance. Layered on top of protocol translation, Keycloak's conditional authentication flows and role-based access controls allow organizations to map UDM security groups to application-specific client roles, making sure that users only access authorized services while maintaining a single, auditable authentication boundary.