Skip to Content
Menu
This question has been flagged
5 Replies
21794 Views

hi, I installed the ldap module that allows me to authenticate users via active directory. So I followed this tutorial: openerpmanagementsystem.blogspot.com/2012/02/configuring-ldap-authentication-with.html. After the module configuration, nothing happened. I looked at the server-openerp.log file and I noticed this error: "openerp.addons.auth_ldap.users_ldap: An LDAP exception occurred: {'info': '00000000: LdapErr: DSID-0C090CF0, comment: Error initializing SSL/TLS, data 0, vece', 'desc': 'Server is unavailable'."

I notify that I installed openerp on ubuntu 12.04 LTS and the host is joined the active directory domain succefully.

so can sombody help me to solve the problem here ?

Avatar
Discard

Are you sure your Openerp server can see the Active Directory server IP and Port? We got this working at our company. I'll check our documentation and see if we had to do anything special.

Author

thank you for your response I unchecked use LTS and the problem goes away, but now I got another error in the log file: ERROR TestBase openerp.addons.auth_ldap.users_ldap: LDAP bind failed. I do not know how to test the connection between openerp and active directory. Here is my configuration: LDAP Adresse du serveur LDAP :192.168.2.200
Port du serveur LDAP : 389 LDAP binddn : CN=administrateur,OU=,DC=domain,DC=local
Mot de passe LDAP : ** Base LDAP : DC=domain,DC=local
Filtre LDAP : sAMAccountName=%s

Best Answer

- How you create the users? I have slimier settings but getting different kind of errors...

{2019-06-26 14:33:07,470 6025 ERROR hrdemo odoo.addons.auth_ldap.models.res_company_ldap: LDAP bind failed.
2019-06-26 14:33:07,471 6025 INFO hrdemo odoo.addons.base.models.res_users: Login failed for db:hrdemo login:odooadadmin@domain.com from 127.0.0.1 }

some times another error...
{2019-06-26 14:08:01,981 6025 ERROR hrdemo odoo.addons.auth_ldap.models.res_company_ldap: An LDAP exception occurred: {'desc': 'Operations error', 'info': '000004DC: LdapErr: DSID-0C09075A, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v1db1'}
}

could you please guide what is missing...


Avatar
Discard
Best Answer

The problem is that you need to have a Domain Administrator to can authentificate AD user's to Odoo.
For me is a security problem.

I try to find a solution to bypass the usage of a Admin account.

Avatar
Discard
Author Best Answer

Voila, I solved the problem, this is my final configuration: Adresse du serveur LDAP 192.168.2.200
Port du serveur LDAP 389 LDAP binddn CN=administrateur,CN=users,DC=domain,DC=local
Mot de passe LDAP


Base LDAP CN=users,DC=domain,DC=local Filtre LDAP sAMAccountName=%s

et merci :)

Avatar
Discard