Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
9 Trả lời
17904 Lượt xem

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:



Ảnh đại diện
Huỷ bỏ

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.

Tác giả

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.

Tác giả

Yes I have restarted the server several times but nothing changed

Câu trả lời hay nhất

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

$ sudo apt install libldap2-dev libsasl2-dev
$ sudo pip3 install pyldap
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I'm having the same problem 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Do you have enabled Developper mode ?

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

yes enabled 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất
Try

$ sudo apt-get install -y --no-install-recommends python3-dev gcc libldap2-dev libssl-dev libsasl2-dev
$ sudo pip3 install pyldap
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 20
4785
5
thg 8 19
28981
1
thg 11 18
6412
2
thg 3 17
4057
3
thg 12 23
27519