![](/img/trans.png)
[英]I want to search the uidNumber from range 7000 to 8000. How can I do that in LDAP3?
[英]Why can't I import LDAPBindError from LDAP3?
嗨,我試圖從ldap3庫導入'LDAPBindError',我收到導入錯誤。 有人可以解釋為什么這不起作用?
from ldap3 import Server, Connection, ALL, LDAPBindError, SUBTREE, ALL_ATTRIBUTES,MODIFY_REPLACE
ImportError: cannot import name 'LDAPBindError'
我使用以下版本
pip3.6 list | grep ldap3 ldap3(2.5)
python3.6 --version Python 3.6.4
所有功勞都歸功於Sraw ,只是在這里添加答案,因為我最初在評論中錯過了它:
from ldap3.core.exceptions import LDAPBindError
這對我行得通。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.