Proxmox VE SSO with LDAP, Active Directory and OpenID Connect

Connecting Proxmox VE to your directory or identity provider changes who can reach the hypervisor, with what roles and under which second factor. This page covers the realm choice, the build sequence, group sync, administrator two-factor enforcement and how to verify the result.

On this page

How Proxmox VE SSO with LDAP and Active Directory changes admin access

A Proxmox VE cluster that still relies on local accounts gives you no central place to disable an administrator, no group-based role assignment and no uniform second factor. Directory integration moves login to a realm you already manage, so the question becomes how each realm maps your directory groups to Proxmox VE permissions. Proxmox VE authenticates users against Linux PAM, its built-in authentication server, LDAP, Microsoft Active Directory and OpenID Connect realms, and supports TOTP, WebAuthn, YubiKey OTP and recovery keys as second factors. The realm configuration is the security boundary: a misconfigured bind account, search base or group filter can admit the wrong users or grant broader rights than intended, so test each realm with a non-administrator account before you move anyone else.

The harder part is mapping. Directory groups do not grant anything until you assign them roles on specific paths, and a group that is broad in Active Directory can become a powerful administrator role in Proxmox VE. Decide which groups may hold the Administrator role, which may only operate guests in a pool, and which should have no access at all, then document that mapping before cutover. Keep at least one local break-glass administrator with a strong password and a hardware-backed second factor, stored under your emergency access procedure, so a directory outage or a bad realm change does not lock everyone out. Confirm with your own team how that account is tested, because changes to realms, users and permissions apply across the cluster and a mistake on one node affects all of them.

Enforcing two-factor authentication for administrators is a policy decision as much as a configuration one. Before you require it, confirm which second factor each administrator will use, how recovery keys are issued and stored, and who resets a lost authenticator without weakening the account. Decide whether the second factor is supplied by the directory identity provider or by Proxmox VE itself, because that determines where the enforcement and the audit trail live. Ask your identity team to confirm the exact behavior of your chosen realm type in your version of Proxmox VE, and run a full administrator login test on a non-production cluster before changing the production realm.

Choosing between LDAP, Active Directory and OpenID Connect realms

This table compares the authentication options Proxmox VE offers for logins, from LDAP and Active Directory to OpenID Connect, PAM and the built-in server. Read each row against your directory, your identity provider owner and how many people need administrator access. The main takeaway is that the realm choice shapes ongoing operational work more than the initial setup, so confirm each option against the user management documentation for your installed version.

OptionWhen it fitsOperational cost to plan forConfirm before choosing
Active Directory realmMicrosoft-centric estate with an existing AD forest that already holds staff accounts and groupsA bind account with read rights to users and groups, LDAPS certificate handling, and sync scope decisions for nested groupsWhich AD domain controllers are reachable from the Proxmox nodes and whether LDAPS is required by your security team
LDAP realmDirectory service such as OpenLDAP or another non-AD LDAP server already runs as the source of truthService account management, schema mapping for user and group attributes, and certificate trust on every nodeAttribute names and group object classes for your directory, and whether the server supports the connection mode you need
OpenID Connect realmExternal or federated identity provider that handles login, MFA and lifecycle for staff across several systemsClient registration with the identity provider, redirect URI maintenance, and a clear owner for secret rotation and claim mappingWhich claims carry group or role data, and whether the provider issues the groups you plan to map to Proxmox VE roles
Linux PAM realmSmall team or break-glass access using local operating system accounts on a nodeLocal account lifecycle on each node, password policy managed per host, and no central deprovisioningWhether PAM accounts are limited to root or a documented emergency group, and where those credentials are stored
Proxmox VE authentication serverSmall team or emergency access managed entirely inside Proxmox VEManual user lifecycle in the cluster, with no link to a corporate directory for joiners and leaversWhether this realm is kept only for break-glass use alongside a directory realm for daily administration
Second factor for administratorsAny realm where administrators hold cluster-wide privilegesTOTP, WebAuthn, YubiKey OTP or recovery key enrollment, plus recovery key custody and help desk procedureWhich second factor types your version supports and whether your identity provider already enforces MFA for the realm

How a Proxmox VE login passes through the realm and second factor

The diagram starts with an administrator's browser or API client reaching the Proxmox VE web and API layer, which hands the username to the selected realm: Linux PAM, the built-in authentication server, LDAP, Active Directory or OpenID Connect. For directory realms, the cluster checks credentials and group membership against the external system, then applies role assignments inside Proxmox VE. A TOTP, WebAuthn, YubiKey or recovery-key check follows before the session is issued. Break-glass accounts sit outside this path, so confirm they still work when the directory is down.

Login path through the realm and second factor, with break-glass outside SSO.

Configuring an Active Directory realm step by step

This sequence takes a Proxmox VE cluster from no external identity source to Active Directory logins that map directory groups to scoped Proxmox VE roles. Each step ends with a check you can confirm before moving on, so a misconfigured bind or group mapping is caught before administrators depend on it.

  1. Confirm the Proxmox VE version and realm documentation

    Record the Proxmox VE version running on every node and read the user management documentation for the realm type you plan to use. Confirm that all nodes run the same version, since realm configuration is stored in the cluster and must behave the same everywhere. Ask your identity team which directory product and functional level you run, and whether LDAP or LDAPS is permitted between the Proxmox VE network and the domain controllers. The step is done when you have a written list of the version, realm type and directory details that the rest of the build depends on.

  2. Create a read-only bind account in the directory

    Ask the directory team to create a dedicated service account that Proxmox VE uses only to search for users and groups. It should have read access to the user and group objects under the search base and no interactive logon or administrative rights. Store its password with your change records, not in a shared document. The check is a successful test bind from a host on the Proxmox VE management network using a directory query tool, which confirms the account, password and network path all work before Proxmox VE is involved.

  3. Prepare the base DN, filters and TLS trust

    Agree with the identity team on the base DN where users and groups live, the user filter that matches your sign-in names, and the group filter used for role mapping. Obtain the certificate authority chain that signs the domain controller certificates so Proxmox VE can verify the connection. Test the filters with the directory query tool and confirm that the expected accounts and groups return, and that nested or excluded containers behave as intended. The step is done when the filters return the right population and the CA file is in place on every node.

  4. Add the realm on one node and confirm propagation

    In the web interface, add an Active Directory realm with the server address, base DN, bind account, filters and CA trust gathered in the previous steps. Make the change on one node only, since the cluster file system replicates configuration to every node. Then open the realm list on a second and third node and confirm the same realm appears with identical settings. Use the realm's test or sync function to confirm Proxmox VE can authenticate the bind account. The check is a realm visible and identical on all nodes, with a successful sync that lists expected users.

  5. Test a non-admin login before mapping roles

    Sign in with a standard directory user who should have limited access, using the realm name at the login prompt. Confirm that the login succeeds and that the user sees only the resources or the default role you expect. Do this before any group-to-role mapping so a permission problem is not hidden by broad administrator rights. Ask the identity team for a test account that belongs to no privileged group. The check is a login that works from the browser and from a second node, with no administrative menus visible.

  6. Map directory groups to Proxmox VE roles

    Create Proxmox VE groups or use the realm's group sync to bind each directory group to a Proxmox VE role on a specific path, such as a pool or the whole datacenter. Start with the least privileged role that meets each team's need, and keep administrator rights for a small directory group. Record every mapping in change control, since the mapping is the access policy. The check is a directory group list in Proxmox VE that matches the mapping plan, with no group granted broader scope than planned.

  7. Sync and verify group membership end to end

    Run a sync and review the user list, confirming each account appears with the groups you expect and that users removed from a directory group lose the matching role after the next sync. Sign in as one user from each mapped group and check that the permissions match the role, both for viewing and for a change that should be denied. Document the sync method and schedule your team will use. The step is complete when each group produces the intended access and a removed member is shown to lose it.

  8. Enforce two-factor authentication for administrators

    Once group mapping is verified, enable a second factor for the accounts that hold administrative roles, using the methods Proxmox VE supports, such as TOTP, WebAuthn or recovery keys. Decide how enrollment is handled for directory accounts and who can reset a lost factor. Confirm that an administrator who has not enrolled a second factor cannot complete a privileged login, and that recovery keys are stored securely. The check is a test administrator sign-in that requires the second factor and a documented reset procedure.

How group sync maps directory groups to Proxmox VE roles

Map directory groups to Proxmox VE roles and resource pools, never to individual users. A group-based mapping means that when someone joins or leaves a team, the directory change alone decides their access in Proxmox VE, and the mapping itself stays stable. Split administration into at least three groups: platform administrators who manage the cluster and realms, operators who start, stop and change guests within assigned pools, and auditors who hold read-only access for review. Give each group the narrowest role that does its job, and grant access to pools rather than to the whole datacenter wherever the environment allows it.

Several failure modes show up repeatedly. Nested groups may not resolve the way administrators expect, so a user who belongs to an administrator group through a child group can lose access or, worse, gain access nobody intended. Renaming a directory group breaks any mapping that refers to the old name, and users may silently lose access after a directory change they never saw. The most serious risk is an administrator role granted through a broad group, such as a general staff or all-engineering group that was never meant to hold cluster rights. Confirm how your realm's group sync handles nested membership and group identifiers in your own environment before you rely on it, and test it with a small set of accounts.

Write the mapping as a table before configuring anything. For each directory group, record its distinguished name or identifier, the Proxmox VE role, the pool or path it applies to, the owner who approved it, and the date of approval. Have the identity owner sign off on the table, since they control group membership and changes. Then review the table and the list of users who hold administrator roles on a fixed schedule set by your security policy, removing access that no longer matches a current job. Keep the signed table with your change records, because auditors reviewing access control will ask for it.

How SSO setup differs for single-node and clustered Proxmox VE

On a single Proxmox VE host, the realm, group mapping and role assignments live on one machine, so there is only one place to change and verify them. Most of the effort goes into confirming that the directory lookup works and that group membership maps to the right roles before administrators depend on it. This setup is common for a lab or a small estate, but the single host is also the single point of failure for logins.

  • Configuration workflow: Create and test the LDAP, Active Directory or OpenID Connect realm once, then map groups to roles and pools on that host.
  • Testing burden: Test with a non-administrator account first, then with each administrator group, and confirm the expected permissions are applied.
  • Second factors: Enrol at least two second-factor methods for each administrator, such as TOTP and a recovery key, so one lost device does not lock out the only host.
  • Break-glass design: Keep a local administrator account that uses the built-in authentication path and store its credentials offline, documented and tested on a schedule.
  • Limits: Node-level failure or a directory outage can cut off all access, so confirm how the realm behaves when the directory is unreachable.

Before relying on this setup, confirm the exact realm options and sync behavior for the Proxmox VE version in use in the user management documentation.

What drives SSO integration effort and cost

This table lists the factors that change how much work an SSO project takes, from realm count and directory shape to second factor enrollment and testing capacity. Read each row as a lever: the driver explains why it matters, and the right column shows how to keep it contained before the rollout grows.

DriverWhy it changes effortHow to keep it down
Identity sources and realmsEach LDAP, Active Directory or OpenID Connect realm needs its own bind account, server settings, certificate trust and login testUse one realm per directory and avoid overlapping realms that match the same users
Directory structureNested groups, multiple domains or forests, and users in several OUs make the group filter and sync scope harder to get rightSync only the groups that map to Proxmox VE roles and confirm the search base before go-live
Number of clusters and nodesRealm settings are cluster-wide, but each cluster needs its own verification, and node-level access paths still need checksStandardize one realm configuration and reuse it across clusters, documenting any per-cluster differences
Roles and resource poolsEvery group-to-role mapping, path and pool scope must be designed, reviewed and tested, and the number grows with each teamKeep a short role model, grant roles on pools instead of individual guests, and limit custom roles
Second factor typesTOTP, WebAuthn, YubiKey OTP and recovery keys each need enrollment steps, user guidance and a recovery processPick one primary factor for administrators, such as WebAuthn or TOTP, and add others only where users need them
Compliance evidenceAssessors may ask for realm configuration, role assignments, MFA enforcement settings and change records, which take time to collect and keep currentAgree the evidence list at the start and capture configuration exports and approvals as the work happens
Identity team availabilityRealm changes, group decisions and test logins depend on directory and identity staff who may be shared with other projectsBook test windows in advance, name one approver for group mappings and run a pilot group before wider rollout

Enforcing two-factor authentication for administrators

Proxmox VE can check a second factor for every login, but the directory and the Proxmox VE configuration both decide whether administrators actually use one. The cards below cover the supported factors, how privileged roles are gated, how secrets are protected, and how recovery and break-glass access are handled.

Choose the second factor per administrator

Proxmox VE supports TOTP, WebAuthn, YubiKey OTP and recovery keys as second factors. For administrators, WebAuthn and hardware keys resist phishing better than a six-digit code typed into a login page, while TOTP is easier to roll out to a large group. Decide the factor per role before enrollment starts, and confirm in the user management documentation for your installed version which factors your build offers for each realm.

User management docs

Require a second factor for privileged roles

Proxmox VE can make two-factor authentication a requirement for the accounts that hold administrative roles, not just a choice users make. Map the privileged roles and pools in your design first, then confirm the enforcement option in the user management documentation for your version. Check that the identity provider also enforces its own MFA policy, so a password-only session cannot reach the Proxmox VE login at all.

Protect the bind account and client secret

The LDAP bind account and the OpenID Connect client secret are credentials that can read your directory or impersonate the Proxmox VE application. Use a dedicated, read-only service account with a long random password, and store the client secret in a secrets vault instead of notes or tickets. Review the configuration export and support bundles before sharing them, because realm settings can contain these values.

Keep secrets out of exports and tickets

Realm configuration, backup archives and support requests are common places where directory credentials leak. Set a rule that realm passwords and client secrets are rotated when someone with access leaves or when a copy is found outside the vault. Ask your Proxmox VE partner or support team to confirm which configuration files and log entries hold secrets on your version, so the review covers the right places.

Assign a documented owner for lost devices

Recovery keys and lost hardware tokens are the most common reason administrators get locked out. Name one owner who can verify identity and reset a second factor, and write the procedure down, including how the request is checked and who approves it. Store recovery keys in a sealed location with access logged, and test the reset procedure with a non-privileged account before you need it in an incident.

Seal and second-factor the break-glass account

A local Proxmox VE account outside the directory is useful when LDAP, Active Directory or the identity provider is down. Give it its own second factor, a strong password held in sealed access, and a log alert on every use. Test it on a schedule, and confirm that the built-in realm still accepts it after changes to the directory or OpenID Connect settings.

How to test SSO logins and confirm they fail safely

Test the realm before any user depends on it, and record each result as a row you can repeat after every change. Start with positive tests: one login per directory group that maps to a Proxmox VE role, each confirming that the user lands with the expected permissions on the expected paths, such as a pool-scoped PVEVMUser role or a read-only PVEAuditor role. Then run negative tests: a user outside every mapped group, a disabled directory account, and an account whose password or Kerberos-side credentials have expired. Each should be refused at the realm, not merely given no permissions. For administrators, test login with the password alone and confirm it is refused when the second factor is required, then test with TOTP, WebAuthn or a recovery key. Finally, create an API token for a test role and confirm its effective rights match the role model, not the rights of the account that created it. Keep the test user list, the expected result, the time of the run and the Proxmox VE authentication log lines as evidence.

Then test how the realm fails. Simulate an unreachable directory by blocking the LDAP or Active Directory port from the Proxmox VE nodes, and confirm that existing sessions behave as documented while new logins are refused and the failure appears in the task log and system log. Simulate a certificate change by rotating the directory server certificate in a lab copy and confirm the realm rejects the connection rather than silently continuing without verification. Deliberately break a realm, for example by pointing its base DN at a wrong value, and confirm that a local break-glass administrator still authenticates through the Linux PAM or Proxmox VE authentication realm. Verify that the break-glass account and its second factor work before the drill, and store its recovery keys offline. Check that each failure produces a log entry a monitoring system can alert on. Ask your identity team to confirm which directory-side events they can see, and record the outcome for each drill.

What buyers ask before hiring a partner for Proxmox VE SSO

How much effort does Proxmox VE SSO integration usually take?

Effort depends mostly on how many identity sources you connect, how clean your directory groups are, and how many admin roles need to map to them. A single LDAP or Active Directory realms with a small set of groups is a much smaller job than several realms feeding a long list of custom roles and pools. Other drivers include whether you need OpenID Connect for a modern identity provider, whether TLS certificates and DNS for the web interface are already settled, and how many test logins your security team wants to see before sign-off. Ask for a written scope that lists each realm, each group mapping, each second-factor method and the test cases, because that list is what a fixed quote is built from.

Can our in-house team set up Proxmox VE SSO from the documentation?

Yes, many teams can, because the Proxmox VE user management documentation covers LDAP, Active Directory and OpenID Connect realms, group-based permissions and second factors such as TOTP and WebAuthn. The harder part is usually not the configuration screens but the decisions behind them: which groups map to which roles, how bind accounts are scoped, how sync timing affects offboarding, and how recovery is handled if the identity provider is down. A capable internal engineer working through a test cluster first is a realistic path. A partner is most useful when the team lacks directory or identity engineering experience, when the change must be reviewed by compliance before production, or when deadlines leave no room for a test cycle.

What does the work need from our directory and identity teams?

The directory and identity teams usually provide the most time-sensitive inputs. They need to confirm the LDAP or Active Directory endpoints, the base distinguished names, a read-only bind account with an agreed password policy, and the group structure that will drive permissions. For OpenID Connect, they need the issuer, client registration, redirect addresses, the claims that carry group membership, and the token lifetimes they accept. Security teams should also agree on who may hold administrator roles, how second factors are enrolled and reset, and which logs must reach the central monitoring stack. Requests to these teams tend to take longer than the Proxmox change itself, so confirm their lead times early in the written plan.

Can SSO be added without downtime for running guests?

In most cases, adding an authentication realm does not restart virtual machines or containers, because it changes how people log in to the management interface and API rather than how guests run. The risk sits in the surrounding changes: a web interface certificate update, a firewall rule change, or a cluster node restart during maintenance. Plan those steps as separate, reversible actions, and confirm with the vendor documentation and your own test cluster how each one behaves on your version. Keep a local administrator path working throughout, and schedule any node-level change inside your normal maintenance window. Ask the partner to state which steps touch the cluster, which do not, and how a rollback is performed.

How are break-glass access and second-factor enrollment handled?

A break-glass account is a local administrator path that works when the identity provider, the directory or the second-factor service is unavailable. It should be created before SSO goes live, stored under dual control, tested on a schedule and monitored for any use. Proxmox VE supports recovery keys alongside TOTP, WebAuthn and YubiKey OTP, so each administrator's enrollment and recovery method should be decided in advance. Document who can reset a factor, how the reset is verified, and how a lost device is handled. Enforcing two-factor authentication for administrators is usually the first control auditors ask about, so the enrollment process and its evidence should be part of the written scope.

What should a partner hand over at the end of an SSO project?

A partner should hand over working configuration, a written record of decisions, and evidence your team can reuse. Typical deliverables include the realm settings with secrets removed, the group-to-role mapping table, the list of permissions and pools each role can reach, the enrollment and recovery procedure, the break-glass runbook, test results for each login path, and the rollback steps. Ask for a knowledge transfer session with your administrators and a clear statement of what is documented as configuration versus what depends on your directory design. Confirm in the written scope whether ongoing support, upgrades or retesting are included, because those are separate, usually recurring, costs.

What to monitor, document and review after SSO goes live

Once the realms are live, the work shifts to keeping them correct. Start with monitoring realm availability and failed logins: confirm that the LDAP, Active Directory or OpenID Connect server is reachable from every Proxmox VE node, and alert on authentication failures for administrator accounts, since a directory outage or a changed bind account often shows up first as a burst of failed logins. Pair that with a scheduled check that a break-glass account still signs in through the local realm. Ask your team to confirm which log sources record realm authentication on your nodes and where they are forwarded, because the exact log locations depend on your version and logging setup.

Next, schedule reviews of administrator role membership against the group-to-role map. Directory groups drift: people change teams, contractors leave, and a group that once granted a narrow role may later include wider access. Each review should compare the current directory membership with the mapping, confirm that every administrator role traces to a named owner, and record the result. Rotate the bind account password and any OpenID Connect client secret on a fixed cycle set by your security policy, and treat each rotation as a change that needs a successful test login before the old credential is retired.

Schedule a review of second factor enrollment and recovery procedures for administrators, including who holds recovery keys and how a lost TOTP device or WebAuthn key is replaced. Re-run the test evidence after every Proxmox VE upgrade and every directory change, such as a domain controller replacement, a schema update or a change to group naming. Keep the handover pack current: the realm configuration record, the group-to-role map, the test evidence, the break-glass procedure and the runbook for lost second factors. Each document should carry an owner and a review date, and an update to any realm setting should trigger an update to the record. Confirm current realm option names against the Proxmox VE user management documentation for the version you run.

How DeployOpen scopes, builds and hands over Proxmox VE SSO work

DeployOpen plans and implements Proxmox VE identity integration inside your own infrastructure, connecting LDAP, Active Directory or OpenID Connect realms to your existing directory. Each engagement is fixed-scope, with the realm design, group mapping, role model and two-factor settings agreed in writing before any configuration changes are made.

How we scope

  • We review which identity sources hold your users and groups, and which Proxmox VE realms they will map to.
  • The written scope lists each realm, the bind and sync settings, and the administrator groups covered.
  • We confirm with your directory team which group attributes, bind accounts and TLS certificates are available before build.

How we build

  • We configure each LDAP, Active Directory or OpenID Connect realm on a test cluster first, then document the settings.
  • Group sync maps directory groups to Proxmox VE roles and pools, with least-privilege permissions tested against sample accounts.
  • We enforce TOTP, WebAuthn or recovery keys for administrator realms and verify login, logout and lockout behavior.

How we hand over

  • You receive a written record of realm settings, role mappings, group-to-role tables and two-factor enforcement steps.
  • We walk your administrators through adding a user, changing a group mapping and recovering a lost second factor.
  • A test report lists what was verified, what failed, and what was fixed before handover.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • A retainer can cover re-checking realm settings after Proxmox VE upgrades and directory changes.
  • Ask your DeployOpen contact to confirm which directory and Proxmox VE versions the retainer covers before you sign.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.