Odoo authentication with Active Directory (LDAP)

Use Odoo’s LDAP authentication module with AD DS via StartTLS, rather than federated SSO.

Last updated

On this page (5)

Odoo Community · Active Directory / LDAP · LDAP

Before you start

  • Odoo 19 deployment with LDAP Authentication available and admin access.
  • Reachable AD LDAP endpoint supporting StartTLS, trusted certificate and authorized search bind.

Configure sign-in

  1. Enable Settings > Integrations > LDAP Authentication, save, and add an LDAP Server record for the appropriate company.
  2. Set the server address and port, enable Use TLS for StartTLS, and enter the query bind DN, password and LDAP base. Set a login filter using the verified AD login attribute and Odoo’s %s placeholder (for example sAMAccountName=%s for short-name login).
  3. If enabling Create user, explicitly choose a least-privilege User template; Odoo documents an administrator profile fallback when the template is omitted.

Verify the result

  • Test TLS and sign in as an eligible AD user; check the resulting Odoo permissions.
  • If valid AD credentials fail because of referral handling, review Odoo’s documented auth_ldap.disable_chase_ref system parameter.

Official documentation

Have Pilae connect your identity provider

Pilae can deploy Odoo Community with your identity provider already connected. We agree the edition, account mapping and access tests with your team before rollout.