Skip to Content
Menu
This question has been flagged
9 Replies
16761 Views

Hi all;
I have installed latest odoo 11 and all its python dependencies including "python_ldap" but still cannot setup "authentication via ldap" module.
it gives an error:



Avatar
Discard

have you tried "sudo apt-get install python-ldap". The "python_ldap" and "python-ldap" is different. Try pip freeze and check python-ldap is installed or not.

Author

Yes I have installed these package and still not working

Have you restarted your service? Have you restarted your server too? Sometimes the dependency isn't recognized right away.

Author

Yes I have restarted the server several times but nothing changed

Best Answer

https://github.com/odoo/odoo/issues/20077

$ sudo apt install libldap2-dev libsasl2-dev
$ sudo pip3 install pyldap
Avatar
Discard
Best Answer

I'm having the same problem 

Avatar
Discard
Best Answer

Do you have enabled Developper mode ?

Avatar
Discard
Author Best Answer

yes enabled 

Avatar
Discard
Best Answer
Try

$ sudo apt-get install -y --no-install-recommends python3-dev gcc libldap2-dev libssl-dev libsasl2-dev
$ sudo pip3 install pyldap
Avatar
Discard
Related Posts Replies Views Activity
0
Apr 20
3690
5
Aug 19
27488
1
Nov 18
5405
2
Mar 17
3286
3
Dec 23
26363