Skip to content

LDAP user guide

As a user

Run bxp trust once. Then:

$ bxp ssh --ldap --key ~/.ssh/id_ed25519.pub
Password for alice:
  • The username is your name on this machine; --ldap-user gives another.
  • The password is asked on the terminal and never accepted as a flag.
  • The certificate gets the login names the access rules give you.

A TLS client certificate for yourself, named by the CA after you:

bxp tls --ldap

In a script, pass the password on standard input:

bxp ssh --ldap --ldap-user alice --password-stdin --key ~/.ssh/id_ed25519.pub < ~/.ad-password

As an admin

Admins use --ldap the same way with bxp token and bxp tls:

bxp token --ldap --profile ssh-host --name web1.example.com
bxp tls --ldap --profile tls-server --name web.example.com

Errors

Problem Meaning
wrong username or password The directory refused the login (HTTP 401).
too many failed logins 3 wrong passwords for your name, or 20 from your address, within 15 minutes: wait until the 15 minutes are over (HTTP 429).
not allowed No access rule names you, or the rules do not allow this request (HTTP 403).
the directory cannot be reached The CA cannot reach a domain controller (HTTP 502).