2

我正在尝试ldap3文档中运行用于模拟的示例:

$ python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39) 
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ldap3 import Server, Connection, MOCK_SYNC
>>> server = Server('my_fake_server')
>>> connection = Connection(server, user='cn=my_user,ou=test,o=lab',password='my_password',client_strategy=MOCK_SYNC)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/ldap3/core/connection.py", line 270, in __init__
    self.strategy = MockSyncStrategy(self)
TypeError: 'NotImplementedType' object is not callable

有谁知道为什么这会失败?

4

0 回答 0