ldap3.strategy.sync module

class ldap3.strategy.sync.SyncStrategy(ldap_connection)

Bases: ldap3.strategy.base.BaseStrategy

This strategy is synchronous. You send the request and get the response Requests return a boolean value to indicate the result of the requested Operation Connection.response will contain the whole LDAP response for the messageId requested in a dict form Connection.request will contain the result LDAP message in a dict form

get_stream()
open(reset_usage=True, read_server_info=True)

Executed after a search request Returns the result message and store in connection.response the objects found

post_send_single_response(message_id)

Executed after an Operation Request (except Search) Returns the result message or None

receiving()

Receive data over the socket Checks if the socket is closed

set_stream(value)