class LDAPClient(protocol.Protocol): (source)
Known subclasses: ldaptor._scripts.ldap2pdns.MyLDAPClient
, ldaptor._scripts.namingcontexts.Search
, ldaptor._scripts.passwd.PasswdClient
An LDAP client
Method | __init__ |
Undocumented |
Method | bind |
@depreciated: Use e.bind(auth). |
Method | connection |
Called when TCP connection has been lost |
Method | connection |
TCP connection has opened |
Method | data |
Undocumented |
Method | handle |
Undocumented |
Method | send |
Send an LDAP operation to the server. @param op: the operation to send @type op: LDAPProtocolRequest @param controls: Any controls to be included in the request. @type controls: LDAPControls @return: the response from server @rtype: Deferred LDAPProtocolResponse... |
Method | send_multi |
Send an LDAP operation to the server, expecting one or more responses. |
Method | send_multi |
Send an LDAP operation to the server, expecting one or more responses. |
Method | send_no |
Send an LDAP operation to the server, with no response expected. |
Method | start |
Start Transport Layer Security. |
Method | unbind |
Undocumented |
Method | unsolicited |
Undocumented |
Class Variable | berdecoder |
Undocumented |
Class Variable | debug |
Undocumented |
Instance Variable | buffer |
Undocumented |
Instance Variable | connected |
Undocumented |
Instance Variable | onwire |
Undocumented |
Method | _cb |
Undocumented |
Method | _handle |
Undocumented |
Method | _send |
Undocumented |
Method | _start |
Undocumented |
Send an LDAP operation to the server. @param op: the operation to send @type op: LDAPProtocolRequest @param controls: Any controls to be included in the request. @type controls: LDAPControls @return: the response from server @rtype: Deferred LDAPProtocolResponse
Send an LDAP operation to the server, expecting one or more responses. If `handler` is provided, it will receive a LDAP response as its first argument. The Deferred returned by this function will never fire. If `handler` is not provided, the Deferred returned by this function will fire with the final LDAP response. @param op: the operation to send @type op: LDAPProtocolRequest @param handler: a callable that will be called for each response. It should return a boolean, whether this was the final response. @param args: positional arguments to pass to handler @param kwargs: keyword arguments to pass to handler @return: the result from the first handler as a deferred that completes when the first response has been received @rtype: Deferred LDAPProtocolResponse
Send an LDAP operation to the server, expecting one or more responses. If `handler` is provided, it will receive a LDAP response *and* response controls as its first 2 arguments. The Deferred returned by this function will never fire. If `handler` is not provided, the Deferred returned by this function will fire with a tuple of the first LDAP response and any associated response controls. @param op: the operation to send @type op: LDAPProtocolRequest @param controls: LDAP controls to send with the message. @type controls: LDAPControls @param handler: a callable that will be called for each response. It should return a boolean, whether this was the final response. @param args: positional arguments to pass to handler @param kwargs: keyword arguments to pass to handler @return: the result from the last handler as a deferred that completes when the last response has been received @rtype: Deferred LDAPProtocolResponse
Send an LDAP operation to the server, with no response expected. @param op: the operation to send @type op: LDAPProtocolRequest