class documentation
class RequestInterceptingProxy(proxybase.ProxyBase): (source)
A test LDAP proxy that does not forward requests but instead responses with pre-determined responses.
Method | handle |
Don't forward the message to the proxied service-- instead reply with predetermined responses. |
Class Variable | responses |
Undocumented |
Inherited from ProxyBase
:
Method | __init__ |
Undocumented |
Method | connection |
Called when TCP connection has been lost |
Method | connection |
Establish a connection with an LDAP client. |
Method | handle_ |
Handler for extended LDAP requests (e.g. startTLS). |
Method | handle_ |
The client has requested to gracefully end the connection. Disconnect from the proxied server. |
Method | handle |
Override to intercept and modify proxied responses. Must return the modified response or a deferred that fires the modified response. |
Method | handle |
If the protocol factory has an `options` attribute it is assumed to be a `twisted.internet.ssl.CertificateOptions` that can be used to initiate TLS on the transport. |
Method | handle |
Forwards requests to the proxied server. This handler is overridden from `ldaptor.protocol.ldap.server.BaseServer`. And request for which no corresponding `handle_xxx()` method is implemented is dispatched to this handler. |
Class Variable | client |
Undocumented |
Class Variable | use |
Undocumented |
Instance Variable | client |
Undocumented |
Instance Variable | queued |
Undocumented |
Instance Variable | start |
Undocumented |
Instance Variable | unbound |
Undocumented |
Method | _connected |
The connection to the proxied server is set up. |
Method | _established |
TLS has been started. Process any backlog of requests. |
Method | _failed |
The connection to the proxied server failed. |
Method | _forward |
Forward the original requests to the proxied server. |
Method | _got |
Returns True if this is the last response to the request. |
Method | _process |
Process the backlog of requests. |
Inherited from BaseLDAPServer
(via ProxyBase
):
Method | check |
Undocumented |
Method | data |
Undocumented |
Method | fail |
Undocumented |
Method | handle |
Undocumented |
Method | queue |
Undocumented |
Method | unsolicited |
Undocumented |
Class Variable | berdecoder |
Undocumented |
Class Variable | debug |
Undocumented |
Instance Variable | buffer |
Undocumented |
Instance Variable | connected |
Undocumented |
Method | _call |
Undocumented |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |