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
- Enable Settings > Integrations > LDAP Authentication, save, and add an LDAP Server record for the appropriate company.
- 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).
- 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
- Odoo 19 official LDAP authentication docs source
- Microsoft AD DS LDAP security and bind signing
- Microsoft LDAP server certificate requirements
