Odoo Help

3

1
1 Answer
3
Avatar

Muhammad Anees Saudi Arabia

--Muhammad Anees--

7218
| 7 3 9
Riyadh, Saudi Arabia
--Muhammad Anees--

Odoo, Dynamics AX and Web Developer.

Muhammad Anees Saudi Arabia
6/26/19, 2:38 AM

After a long struggle I have done it successfully.....
Here are the LDAP Server settings that worked with me.

Odoo Version I am testing on: 12 Community
Machine: Odoo is installed on a VM running on my Laptop and connected in the same Windows AD Network.
AD Server: Windows 2008 R2

1. Installed LDAP module
2. LDAP Server address = 192.168.19.33 (This is the IP address of your AD Server. Ping must be successful from your VM)
3. LDAP Server port = 389 (This is a default LDAP port)
4. Use TLS = False
5. LDAP base: OU=Accounts,DC=domain,DC=com (Here Accounts is the parent folder. In my AD structure all OU and Users are under Accounts folder. See your AD structure and take the root DN)
6. LDAP filter:
a) If you want to authenticate odoo user with AD user Login ID then use filter:  sAMAccountName=%s 
b) If you want to authenticate odoo user with AD user email then use filter: mail=%s
7. Sequence 10
8. LDAP binddn = adminuser@domain.com same as AD admin user id. You can create a new AD user with admin rights.
9. LDAP password = admin user pwd same as AD
10. Create User ​ = Checked.
a) If Create User is checked and try to login into odoo login window, in this case if you have not created your odoo user with the same AD Id or Email, odoo will create a user in odoo database if authentication is successful.
b) If Create User = Un-Checked. In this case You first have to create user in your odoo database with blank/empty password. For a trick you can create it on Odoo LDAP settings page Create and Select User Template every time and later on update with user info and rights.
11. Now your users in your odoo database have no passwords. When you login to odoo with AD ID/Email, odoo first attempts to authenticate with local password in odoo database which is empty, if password is empty then odoo attempts to authenticate with AD account.
12. Run the odoo in ubuntu terminal and keep checking login after each login attempt. It will show why LDAP authentication faild.
13. During this LDAP configutation I received many errors like LDAP bind failed, that is logical that you are on right direction. 

Ask a Question
Writer
Keep Informed
2 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now