تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
9799 أدوات العرض

Hi Dears

I've just installed odoo 11, installed auth_ldap module, and now i'm configuring ldap to authenticate users from Active Directory.

Settings -> General Settings -> Ldap Server
Server : myserver.domain.com
port : 389
ldap bindn : CN=admin_user,OU=ADMINACCOUNTS,DC=my,DC=company,DC=com
LDAP password: mypass  <---  note that password is visible as normal text not stars !!!!
LDAP base: DC=my,DC=company,DC=com
LDAP filter : (&(objectclass=user) (sAMAccountName=%s))

Using ldapsearch from os with the same values above works fine with no error.

however, after the above settings when I login from odoo login page I got authentication error and the following error in the log : 


2018-10-14 12:09:24,400 24376 ERROR HR_ADMIN odoo.addons.auth_ldap.models.res_company_ldap: An LDAP exception occurred: {'desc': 'Operations error', 'info': '000004DC: LdapErr: DSID-0C090752, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v2580'}

For some reason , it doesn't accept the bindn . ldapsearch command working fine withe the same bindn and same password.


الصورة الرمزية
إهمال
أفضل إجابة

@Mohamed Sayed did you solve the problem...? 

If yes please share all LDAP settings that you entered Settings -> General Settings -> Ldap Server

Please share the  ldapsearch command.

Thanks

الصورة الرمزية
إهمال
أفضل إجابة

Same problem on odoo 12 with Active Directory.

Did you fix?

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 23
2200
0
أبريل 20
4458
1
يناير 24
18932
5
أغسطس 19
28680
1
نوفمبر 18
6157