Ir al contenido
Menú
Se marcó esta pregunta
9 Respuestas
17892 Vistas

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
Descartar

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.

Autor

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.

Autor

Yes I have restarted the server several times but nothing changed

Mejor respuesta

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

$ sudo apt install libldap2-dev libsasl2-dev
$ sudo pip3 install pyldap
Avatar
Descartar
Mejor respuesta

I'm having the same problem 

Avatar
Descartar
Mejor respuesta

Do you have enabled Developper mode ?

Avatar
Descartar
Autor Mejor respuesta

yes enabled 

Avatar
Descartar
Mejor respuesta
Try

$ sudo apt-get install -y --no-install-recommends python3-dev gcc libldap2-dev libssl-dev libsasl2-dev
$ sudo pip3 install pyldap
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
abr 20
4764
5
ago 19
28978
1
nov 18
6407
2
mar 17
4055
3
dic 23
27507