With ASYNC you must request the response with the get_response() method. ![]() Status, result, response, _ = arch('o=test', '(objectclass=*)') # usually you don't need the original request (4th element of the returned tuple) The SafeSync strategy can be used with the Abstract Layer, but the Abstract Layer currently is NOT thread safe.įor example, to use SAFE_SYNC: from ldap3 import Server, Connection, SAFE_SYNCĬonn = Connection(server, 'my_user', 'my_password', client_strategy=SAFE_SYNC, auto_bind=True) request: the original request of the operation.response: the response of a LDAP Search Operation.result: the LDAP result of the operation. ![]() OpenStudio is an open source (LGPL) project to facilitate community development, extension, and private sector adoption. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |