ldap3.strategy.ldifProducer module

class ldap3.strategy.ldifProducer.LdifProducerStrategy(ldap_connection)

Bases: ldap3.strategy.base.BaseStrategy

This strategy is used to create the LDIF stream for the Add, Delete, Modify, ModifyDn operations. You send the request and get the request in the ldif-change representation of the operation. NO OPERATION IS SENT TO THE LDAP SERVER! Connection.request will contain the result LDAP message in a dict form Connection.response will contain the ldif-change format of the requested operation if available You don’t need a real server to connect to for this strategy

accumulate_stream(fragment)
get_stream()
post_send_single_response(message_id)
receiving()
send(message_type, request, controls=None)

Build the LDAPMessage without sending to server

set_stream(value)