ldap3 python库中的time_limit似乎不起作用

时间:2018-10-28 07:29:44

标签: python python-3.x ldap python-ldap ldap3

server= 'ldap://ldap.infonotary.com'
dn ='dc=identity-ca,dc=infonotary,dc=com'
ldapserver = ldap3.Server(server, connect_timeout=3)
ldap_conn = ldap3.Connection(ldapserver, auto_bind=True, receive_timeout=1)
ldap_conn.search(search_base=dn, search_filter='(objectClass=*)', search_scope=ldap3.BASE, attributes=['certificateRevocationList;binary'], time_limit=1)

connect_timeout工作正常。但是receive_timeout对我不起作用。我做对了吗?连接发生的时间超过了receive_timeout设置的时间。

0 个答案:

没有答案