Skip to content

Active Directory / LDAP

Companies with Active Directory on premises, and no identity provider in front of it, can let people log in with their directory username and password. The CA checks them against the directory and reads the person's groups, nested groups included. The same access rules decide what they get, as with OIDC.

$ bxp ssh --ldap --key ~/.ssh/id_ed25519.pub
Password for alice:
Certificate:  /home/alice/.ssh/id_ed25519-cert.pub
Principals:   alice
Valid until:  2026-11-16 08:28 UTC

How it works

LDAP login: bxp ssh posts the username and password; BastionXP CA server binds to the domain controller, checks the password, reads the groups, and returns a one-time token; bxp ssh exchanges it for a certificate LDAP login: bxp ssh posts the username and password; BastionXP CA server binds to the domain controller, checks the password, reads the groups, and returns a one-time token; bxp ssh exchanges it for a certificate

Prefer OIDC where you can

With OIDC the CA never sees a password, and the provider's MFA applies. With LDAP the password passes through the CA on its way to the directory: over TLS both ways, never stored, never logged, but the CA handles it. AD FS, which many AD sites already run, speaks OIDC: see AD FS. Both logins can be on at the same time.

Next

  1. Server setup (Active Directory)
  2. OpenLDAP and FreeIPA
  3. Access rules
  4. User guide
  5. Security
  6. Hosts in Active Directory (SSSD)