Odoo Active Directory integration (LDAP): one login for ERP and office
Odoo Community checks a password with Active Directory over LDAP. It does not archive a leaver or reset a password by SMS. What we built for one plant.
In short. Odoo Community has a standard LDAP module. It checks the password with Active Directory, and it can create the Odoo user at the first login. It does not archive the user of a person who leaves, and it does not read directory groups. The standard password reset needs an e-mail address. In our Case 01, the ERP can create and close the directory account from the employee file.
IT leads in factories with 100 to 1,000 people ask: can the ERP use the accounts of the office network? Each new system adds one more password list. When a person leaves, IT must close each account on the same day. Many workers have no company e-mail. This article shows what standard Odoo does, and what we built in one live plant.
What do the pages for "odoo active directory integration" answer today?
They answer the set-up, not the daily work. On 24 November 2026, the first results were the Odoo documentation page "LDAP authentication", forum questions and app-store pages. The documentation page gives the fields: the server, the look-up account, the filter and the template user. It does not cover a person who leaves, a worker without e-mail, a forgotten password or roles.
What does standard Odoo Community give for an Active Directory login?
It gives a password check with the directory, in a standard Community module. We read the source code of the Odoo version that Case 01 runs, on 24 November 2026.
Odoo first checks its own password for the login. If that fails, Odoo finds the person in the directory and tries the password there. Odoo does not store the directory password. The module has no code that reads directory groups, and no job that archives a user. Thus, archive the Odoo user when IT disables the directory account.
OAuth signs users in with a cloud account, for example Microsoft Azure. Two-factor sign-in uses an authenticator app. A passkey is an alternative to a user name and a password. We found no SAML and no Kerberos module in the standard source. The Odoo Community Association publishes SAML and OpenID Connect modules for that Odoo version.
What is a directory, and why does one account for each person matter?
A directory is the list of the people and the computers on the company network. Active Directory is the directory service of Windows Server, and it stores each user account with its name and password. With one user name and one password, a person can use each resource that the network permits. When IT disables that account, the person cannot sign in with it.
How Case 01 does one login for the ERP and the office
Case 01 is a Vietnamese packaging manufacturer with more than 500 people in two plants. It runs Odoo Community with modules that Hoply.Works wrote. The password check is the standard LDAP module. The six functions below are in the Case 01 code.
- HR creates the account. The account starts from the employee file, not from the first login. The login is not an e-mail address, so a worker needs no company e-mail.
- The ERP can make the directory account. An authorised person starts the sync in the ERP. The same account can also sign the person in to an office PC, because one directory is the source.
- One password, changed in one place. At the ERP login, the person types one user name and one password. The person changes that password in the ERP. The ERP can send it to the directory first. If the directory refuses it, nothing changes, and the person sees the reason.
- A forgotten password, without e-mail. Each user can have a confirmed recovery phone number. On the login page, the person asks for a reset and gets a code by SMS. The code has a short life and works one time. The ERP sends the SMS through the plant's own 4G modem.
- A person leaves. HR records the last working day on the employee file. After that day, a daily job archives the ERP login. It writes a note on the employee file. Then the ERP can turn off the directory account. An administrator can also archive a user at any time.
- Roles come from the ERP. A Role Map app shows a card for each role: its purpose, its rights and one of three risk levels. An administrator gives or removes a role on that page, and the ERP notes it on the employee file. An access review lists the rights of each role and each person.
Automated tests check the directory writes, the SMS reset and the Role Map: 243 server tests and 27 browser-side tests. The directory tests use a simulated directory, not a live one. The directory writes also have a test mode: the ERP records each operation and writes nothing.
What is the difference between standard Odoo LDAP and Case 01?
The password check is the same. The difference is the work before and after it.
| Need | Standard Odoo Community | Case 01 |
|---|---|---|
| Sign in with the directory password | Yes, the standard LDAP module | The same module |
| The first account | The first login can create the user from a template user | HR creates it from the employee file |
| A worker without e-mail | The password reset needs an e-mail address | The login needs no e-mail address. The reset uses SMS |
| A password change | The code tries the directory. The README says that Odoo does not manage it | The ERP can write to the directory first |
| A person leaves | An administrator archives the user by hand | A daily job archives the login. The ERP can turn the directory account off |
| Roles | The template user gives the first groups | The Role Map in the ERP |
| Roles from directory groups | Not found | Not built |
| Single sign-on | OAuth with a cloud account. No SAML or Kerberos module found | Not built |
What should IT set before the first directory login in Odoo?
These five items are our recommendations to you, with public sources.
- Encrypt the connection. Turn on "Use TLS". Microsoft says that a directory server is more secure when it rejects simple binds on a clear-text connection.
- Give the look-up account the least rights. Odoo uses it only to find the user entry. This is Microsoft's least-privilege rule.
- Put no password on the template user. Odoo gives that password to each new directory user.
- Protect each administrator. Turn on two-factor sign-in, and keep one local administrator account for an emergency.
- Know the Active Directory note. If valid users cannot sign in, Odoo's documentation gives a fix: the system parameter
auth_ldap.disable_chase_refwith the valueTrue.
What Case 01 does not do yet
- Single sign-on. Our modules add no SAML, OAuth or Kerberos sign-in.
- Roles from directory groups. An administrator gives roles in the ERP.
- Import from the directory. The flow goes one way: from the employee file to the ERP, and then to the directory.
- Automatic sync. A person starts each sync. Automatic writes are only for an archived user and for a password change.
- SMS reset for each person. It needs a confirmed phone number and mobile coverage.
When does this not fit?
- You have 15 users and no directory. Keep the Odoo passwords, turn on two-factor sign-in, and archive a leaver by hand.
- Your accounts are in a cloud identity service. Use the standard OAuth sign-in of Odoo.
- Your HR data is not in the ERP. The lock for leavers needs the last working day on the employee file.
- You want roles from directory groups. A community module did this for earlier Odoo versions. We did not find it for the Odoo version that Case 01 runs.
What to send us
- Where your accounts are today: a directory server in the plant, a cloud service, or none.
- The number of people who sign in, and how many have no company e-mail.
- Who closes the accounts of a leaver today, and how long it takes.
Read next: ZKTeco attendance terminals to Odoo in real time with ADMS push · ERP user adoption: why workers do not use the ERP, and what we changed · Case 01: IT and sign-in · Talk to us
Sources
- Odoo documentation: LDAP authentication
- Odoo documentation: users
- Odoo documentation: two-factor authentication
- Odoo documentation: Microsoft Azure sign-in
- Odoo source code: the LDAP module and its README
- Odoo source code: password reset by e-mail
- Odoo source code: passkeys
- Odoo source code: list of standard modules
- Odoo Community Association: sign-in modules
- Odoo Community Association: module "LDAP groups assignment" for an earlier Odoo version
- Microsoft Learn: Active Directory Domain Services overview
- Microsoft Learn: LDAP signing in Windows Server
- Microsoft Learn: least-privilege administrative models
- Microsoft Learn: Disable-ADAccount
- Hoply.Works, Case 01: the code of the live system, read on 24 November 2026.