Skip to main content

LDAP & OIDC Authentication

ProxCenter supports external authentication via LDAP/Active Directory and OIDC (OpenID Connect) providers. This lets your team log in with their existing corporate credentials instead of managing separate ProxCenter accounts.

Overview​

By default, ProxCenter uses local authentication (email and password). When you configure an external identity provider, users can authenticate through that provider and are automatically provisioned in ProxCenter on first login.

You can use LDAP, OIDC, or both simultaneously. Local authentication remains available as a fallback.

LDAP / Active Directory​

Configuration​

Navigate to Settings and select LDAP / Active Directory. The settings tab bar scrolls horizontally; use its arrows if the tab is outside the visible area. Select Enable LDAP authentication to edit the form, then fill and test the directory configuration before saving.

Access and security group of the settings side navigation with LDAP / Active Directory selected, then OIDC / SSO, API and HTTPS / Certificates
LDAP / Active Directory and OIDC / SSO sit in the Access and security group of the settings navigation.
LDAP Server form with LDAP server URL, Bind DN, Bind Password, Base DN, Ignore TLS certificate errors switch and CA certificate (PEM)
Configure the LDAP server and bind account, then set certificate trust for the directory connection.
FieldDescription
Server URLLDAP server address (e.g., ldap://dc.example.com or ldaps://dc.example.com)
Bind DNDistinguished name for the service account used to search (e.g., cn=proxcenter,ou=services,dc=example,dc=com)
Bind PasswordPassword for the bind DN
Base DNThe search base for users (e.g., ou=users,dc=example,dc=com)
User FilterLDAP filter to match user accounts (e.g., (sAMAccountName={{username}}))
Email AttributeAttribute containing the user's email (default: mail)
Name attributeLDAP attribute containing the user's display name, such as cn or displayName
Group attributeAttribute containing group memberships, such as memberOf
Ignore TLS certificate errorsDisables certificate verification; leave off to verify the directory server
CA certificate (PEM)CA certificate for an LDAPS server whose issuing CA is not trusted by the ProxCenter container; leave empty to use the system trust store

Use an ldaps:// server URL for LDAP over TLS. The certificate-error switch controls verification, not whether TLS is enabled. For a private CA, keep verification enabled and supply its PEM certificate; this field is hidden while Ignore TLS certificate errors is enabled. Group membership is configured through Group attribute, not a separate group search base.

User search card with User filter (sAMAccountName={{username}}), Email attribute mail and Name attribute displayName
The User search card sets how a username is looked up and which attributes give the email and the display name.

Group Mapping​

LDAP group mapping card showing memberOf, Viewer as default role, Add mapping and the group membership restriction
Choose the group-membership attribute, fallback role and whether group membership is required to sign in.

You can map LDAP groups to ProxCenter roles. For example, map CN=Proxmox-Viewers,OU=Groups,DC=example,DC=com to Viewer using the role selector. The Group attribute identifies the attribute holding the user's memberships. A mapping matches either the full group value returned by that attribute, or the group's CN when that value starts with CN=. For a group DN that does not start with CN=, enter the full DN. Matching is case-sensitive, so copy the value exactly as the directory returns it. Each LDAP mapping selects a group and a role, with no per-row scope. Review the Default role used when no group matches. See System roles before granting administrator or console access.

Flowchart of an LDAP sign-in starting from a username and password. In the orchestrator, against the directory: find the user's entry, binding as the Bind DN when it is set and searching the Base DN with the User filter, which must return exactly one entry; then bind as that user, which checks the password and reads the email, name and Group attribute. A failure of either step, labelled failed or wrong password, ends in the same Invalid LDAP credentials message, whatever failed. In ProxCenter: when Require group membership to log in is on, a user in none of the Allowed groups ends in Access denied: your LDAP account is not in an authorized group; otherwise, or when the switch is off, the group mappings are read from top to bottom, matching the full DN or the CN, case-sensitive. The first matching row gives its role, synchronized at every sign-in; when no row matches, the user keeps the role already held, and a first sign-in gets the Default role. A note adds that the TOTP code comes next for accounts with two-factor authentication on.Flowchart of an LDAP sign-in starting from a username and password. In the orchestrator, against the directory: find the user's entry, binding as the Bind DN when it is set and searching the Base DN with the User filter, which must return exactly one entry; then bind as that user, which checks the password and reads the email, name and Group attribute. A failure of either step, labelled failed or wrong password, ends in the same Invalid LDAP credentials message, whatever failed. In ProxCenter: when Require group membership to log in is on, a user in none of the Allowed groups ends in Access denied: your LDAP account is not in an authorized group; otherwise, or when the switch is off, the group mappings are read from top to bottom, matching the full DN or the CN, case-sensitive. The first matching row gives its role, synchronized at every sign-in; when no row matches, the user keeps the role already held, and a first sign-in gets the Default role. A note adds that the TOTP code comes next for accounts with two-factor authentication on.
Every directory failure looks the same to the user. Once signed in, the first mapping row the user's groups match decides the role, and the Default role only covers a first sign-in.
tip

Test your LDAP configuration using Test connection before saving. It verifies the bind credentials and attempts a user search with the configured filter.

Result of Test connection against an unreachable server: Connection failed, the checklist with Connection to the server failed, Service account bind and Base DN readable skipped, User filter syntax checked, user search, password, group membership and role mapping not checked, and the note that a green test does not mean that a user can sign in
Test connection reports each step separately. A step it cannot reach is skipped, and even a green test never checks a user's password or groups.

After saving, sign in with a directory account and check its effective role. Group membership and LDAP-owned role grants are evaluated at sign-in; a successful connection test alone does not confirm a user's role or password. If access must end immediately, also end the user's ProxCenter sessions: disable the account in Security & Access > Users, which revokes all of its sessions, or, as a super admin, use Revoke sessions in the All sessions tab. See Another user's sessions.

OIDC / SSO​

Set the public URL first

ProxCenter always sends ${NEXTAUTH_URL}/api/auth/callback/oidc as the redirect URI, built from the NEXTAUTH_URL environment variable set at install time. If ProxCenter is behind a reverse proxy, make sure NEXTAUTH_URL matches your public FQDN before registering the application with your identity provider, otherwise the provider will receive ProxCenter's internal IP as the callback and the login flow will fail. See Reverse Proxy and Public URL for the procedure.

Configuration​

Navigate to Settings and select OIDC / SSO. Select Enable OIDC / SSO authentication to edit the provider fields.

OIDC Provider Configuration fields for provider name, issuer URL, client ID, client secret and scopes
Populate the provider fields from your identity provider. Then register the two URLs shown at the bottom of the card, exactly as your own instance displays them.
FieldDescription
Provider NameDisplay name shown on the login button (e.g., "Sign in with Okta")
Issuer URLThe OIDC provider's issuer URL (e.g., https://accounts.google.com)
Client IDThe OAuth 2.0 client ID registered with your provider
Client SecretThe OAuth 2.0 client secret
ScopesRequested scopes (default: openid profile email)
Advanced Endpoints (Authorization / Token / Userinfo URL)Optional manual overrides, found under the collapsed Advanced Endpoints section. Leave blank for any provider that publishes .well-known/openid-configuration, which is the case for every major identity provider (Entra ID, Google, Okta, Duo, Keycloak, Authentik). Fill these in only if your provider does not expose discovery, in which case all three must be set explicitly.
Advanced Endpoints section expanded, with empty Authorization URL, Token URL and Userinfo URL fields under the note to leave them empty to use the discovery document
Leave the advanced endpoints empty when the provider publishes a discovery document.

URLs to Register with Your Identity Provider​

Two URLs have to be registered, and the Provider Configuration card prints both with the exact values ProxCenter will send:

What to registerValue
Redirect / callback URLhttps://your-public-fqdn/api/auth/callback/oidc
Post-logout redirect URLhttps://your-public-fqdn/login

Neither is a setting: both are built from the NEXTAUTH_URL environment variable, and the card computes them server-side from that variable, so what it prints is what the provider will receive even when you are browsing ProxCenter through a different host name.

The /api/auth/callback/oidc path is fixed. The trailing oidc segment is ProxCenter's internal provider id, not the name you gave the application in your identity provider, so it stays oidc whatever you called the client.

Register both exactly: scheme, host, port and path, with no trailing slash difference. To change them, edit NEXTAUTH_URL in /opt/proxcenter/.env and restart the stack, as described in Reverse Proxy and Public URL.

Sequence diagram between the user's browser, ProxCenter at proxcenter.example.com and the OIDC provider, arrow color showing the sender. Sign in: the user clicks the SSO button on /login and ProxCenter redirects the browser to the provider; the browser sends the authorize request with the openid profile email scopes, the provider runs its own sign-in and MFA, then redirects the browser to NEXTAUTH_URL/api/auth/callback/oidc, marked as a URL to register. The browser calls back ProxCenter with the code, ProxCenter exchanges the code for an ID token carrying the email and name, creates the account or links it by email on a first sign-in, and opens the session on the dashboard. Sign out: the user signs out, ProxCenter returns the end-session URL and ends its own session; when the provider publishes an end_session_endpoint, the browser goes there with id_token_hint or client_id, and the provider redirects it to NEXTAUTH_URL/login, the second URL to register. The legend notes that an unregistered URL is answered with invalid_redirect_uri.Sequence diagram between the user's browser, ProxCenter at proxcenter.example.com and the OIDC provider, arrow color showing the sender. Sign in: the user clicks the SSO button on /login and ProxCenter redirects the browser to the provider; the browser sends the authorize request with the openid profile email scopes, the provider runs its own sign-in and MFA, then redirects the browser to NEXTAUTH_URL/api/auth/callback/oidc, marked as a URL to register. The browser calls back ProxCenter with the code, ProxCenter exchanges the code for an ID token carrying the email and name, creates the account or links it by email on a first sign-in, and opens the session on the dashboard. Sign out: the user signs out, ProxCenter returns the end-session URL and ends its own session; when the provider publishes an end_session_endpoint, the browser goes there with id_token_hint or client_id, and the provider redirects it to NEXTAUTH_URL/login, the second URL to register. The legend notes that an unregistered URL is answered with invalid_redirect_uri.
Both URLs the provider sends the browser back to come from NEXTAUTH_URL. Register the callback and the /login return URL exactly, or the provider stops the sign-in or the sign-out.
The post-logout URL is as mandatory as the callback

Signing out of ProxCenter also ends the session at the identity provider, and a provider refuses a logout whose return URL it does not know, exactly as it refuses an unregistered callback. A missing registration answers invalid_redirect_uri and leaves the user stranded at the provider instead of back on the login page. See Signing Out below.

Supported Providers​

Any OIDC-compliant provider works. Commonly used with:

  • Microsoft Entra ID (Azure AD) -- For Microsoft 365 organizations
  • Google Workspace -- For Google-based organizations
  • Okta -- Enterprise identity management
  • Duo Single Sign-On -- See the dedicated SSO with Duo walkthrough
  • Keycloak -- Self-hosted identity provider
  • Authentik -- Open-source identity provider popular with homelab users

User Provisioning​

When a user logs in via OIDC for the first time, ProxCenter automatically creates a local account linked to their OIDC identity. The user's email and display name are populated from the OIDC claims.

Subsequent logins match on the email address claim. If the user already has a local account with the same email, the accounts are linked.

Group-to-Role Mapping​

The User Provisioning card carries a Group-to-role mapping table: "Map IdP group names to a ProxCenter role, in a tenant and optionally inside a single vDC. A group can appear on several rows to grant access in several tenants. First match wins per tenant and vDC."

Each row is four fields, added with Add mapping:

FieldWhat it holds
IdP GroupThe group name as the identity provider sends it
TenantThe tenant the role is granted in
vDCA single vDC of that tenant, or Whole tenant
RoleThe ProxCenter role to grant

The Tenant and vDC columns appear on an installation that has more than one tenant or at least one vDC. On a single-tenant installation the table keeps two columns, and a mapping row with no tenant is read as an unscoped row in the provider tenant: there is nothing to migrate.

OIDC User Provisioning card with Auto-provision users on, Default role Viewer, Users in several groups set to Keep the first matching role, and four group-to-role mappings with IdP Group, Tenant, vDC and Role, including the same group in two tenants and one row scoped to a vDC
Map each identity-provider group to a role in a tenant, optionally inside one vDC. The same group can appear on several rows to grant access in several tenants.

How a login resolves. Groups are walked in the order the provider sends them, and every row matching a group is taken; the first row per tenant and vDC pair wins. One login can therefore end up with a role in the provider tenant and a vDC-scoped role in a customer tenant at the same time. When nothing matches, the Default role is granted in the provider tenant.

A row naming a vDC grants the role scoped to that vDC's Proxmox pool; a row naming the whole tenant leaves the role's own default scope in place. A row pointing at a vDC that has since been deleted, or whose tenant no longer matches, is dropped rather than widened to the whole tenant. Tenant membership follows the mapping too: a user mapped into a new tenant joins it, and one who loses their last grant in a tenant leaves it.

Worked example of the OIDC group-to-role mapping, evaluated under both values of Users in several groups. The identity provider sends the groups ops, acme-admins and devs, in any order. The five mapping rows, read top to bottom, are: 1, Operator in Provider for ops, whole tenant; 2, Tenant Admin in Acme Corp for acme-admins, vDC acme-lab-a; 3, Viewer in Provider for ops, whole tenant; 4, Tenant Admin in Acme Corp for acme-admins on the deleted vDC acme-old; 5, Viewer in Provider for finance, whole tenant. Under Keep the first matching role, one role per tenant and vDC: row 1 is kept, row 2 is kept and scoped to the acme-lab-a pool, row 3 is skipped because row 1 already holds that tenant and vDC, row 4 is dropped because its vDC was deleted and it is never widened, and row 5 does not match. Under Combine every matching role, where permissions are the union of the roles, the only difference is row 3, kept and adding Viewer to Operator; it is marked as the first divergence. The results are Operator in the provider tenant plus Tenant Admin on vDC acme-lab-a, or Operator, Viewer and Tenant Admin on vDC acme-lab-a. A fallback box says that when no row matches, the Default role is granted in the provider tenant.Worked example of the OIDC group-to-role mapping, evaluated under both values of Users in several groups. The identity provider sends the groups ops, acme-admins and devs, in any order. The five mapping rows, read top to bottom, are: 1, Operator in Provider for ops, whole tenant; 2, Tenant Admin in Acme Corp for acme-admins, vDC acme-lab-a; 3, Viewer in Provider for ops, whole tenant; 4, Tenant Admin in Acme Corp for acme-admins on the deleted vDC acme-old; 5, Viewer in Provider for finance, whole tenant. Under Keep the first matching role, one role per tenant and vDC: row 1 is kept, row 2 is kept and scoped to the acme-lab-a pool, row 3 is skipped because row 1 already holds that tenant and vDC, row 4 is dropped because its vDC was deleted and it is never widened, and row 5 does not match. Under Combine every matching role, where permissions are the union of the roles, the only difference is row 3, kept and adding Viewer to Operator; it is marked as the first divergence. The results are Operator in the provider tenant plus Tenant Admin on vDC acme-lab-a, or Operator, Viewer and Tenant Admin on vDC acme-lab-a. A fallback box says that when no row matches, the Default role is granted in the provider tenant.
The mapping rows decide, top to bottom. Keep the first matching role leaves one role per tenant and vDC, Combine every matching role keeps every matching row, and a row on a deleted vDC is dropped rather than widened.
The takeover test is per tenant

An administrator who has taken a user's role over in one tenant does not freeze the identity provider out of the other tenants. See When an administrator sets the role by hand.

When an Administrator Sets the Role by Hand​

Setting a user's role from Security > Users takes that user over: the role an administrator writes is the one that stands, and a later SSO login leaves it alone instead of adding its own beside it.

To hand a user back to the identity provider, clear their role in the Users dialog. That leaves no row at all, and the next login re-seeds one from the group mapping.

Two rows deliberately do not count as an administrator takeover:

  • A row owned by the other directory, an LDAP-owned role when the user signs in through OIDC and the reverse. An account moved from one to the other has to pick up the new mapping rather than keep the old role.
  • An expired grant. It already grants nothing, so it must not read as a role the user holds.

Signing Out​

Signing out of ProxCenter also ends the session at the identity provider, so a user who signs out and clicks the SSO button again is asked to authenticate rather than being silently signed straight back in.

There is nothing to configure. ProxCenter reads the provider's end_session_endpoint from its discovery document, and a provider that publishes none, Google for instance, keeps the plain local sign-out. A discovery that fails never blocks the sign-out either.

What ProxCenter sends is the provider's end-session endpoint with a post_logout_redirect_uri pointing at /login, plus an id_token_hint when the session carries one, or the client_id when it does not. The hint is the interoperable form and the one Okta requires; the client_id fallback is what lets Keycloak and Entra ID skip their "really sign out?" confirmation screen.

This is why the post-logout redirect URL has to be registered at the provider like the callback URL: without it the provider answers invalid_redirect_uri and the browser never comes back.

Local and LDAP sign-ins are unchanged

Only an OIDC session carries the identity token this uses. A local or LDAP sign-out is the same local sign-out it always was.

warning

Ensure that email addresses returned by your OIDC provider are verified. An attacker who can control their OIDC email claim could potentially link to an existing ProxCenter account.

MFA on OIDC accounts

ProxCenter does not add a second factor on top of OIDC sign-ins. MFA is the responsibility of the identity provider (Entra ID Conditional Access, Okta MFA, Authentik flows, Duo, Keycloak, etc.). For local and LDAP accounts ProxCenter offers a built-in TOTP flow, see Two-Factor Authentication.

Enterprise Feature

LDAP/Active Directory and OIDC authentication are available in the Enterprise edition.

Permissions​

PermissionDescription
admin.settingsRequired by the LDAP/OIDC configuration and connection-test APIs; the settings tabs are shown to provider-tenant super administrators