Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

LDAP

Autha supports LDAP directory integration for user and group resolution. This feature enables compatibility with enterprise identity systems by dynamically resolving user attributes and group memberships through LDAP queries.

Add in config.yaml following code:

ldap:
  address: ldap://127.0.0.1:389
  user: CN=admin,DC=domain,DC=local
  password: admin
  base_dn: DC=domain,DC=local
  additional_users_dn: OU=users
  users_filter: '(&(uid={user_id}))'
  additional_groups_dn: 'OU=groups'
  groups_filter: '(&(member={dn})(objectClass=groupOfNames))'
ParameterDescription
addressURL of the LDAP server. Support ldap:// and ldaps://.
user*DN of admin LDAP account used to create new entries.
password*userPassword for admin account.
base_dnRoot DN for all LDAP searches.
additional_users_dnSub-path under base_dn to locate user entries.
users_filterLDAP filter to find a specific user
additional_groups_dn,Sub-path under base_dn to locate group entries.
groups_filterLDAP filter to find groups containing the user

* You can omit user and password field if you don’t want to create new entires on LDAP via Autha.