Package ldaptor :: Package protocols :: Package ldap :: Module ldapserver :: Class BaseLDAPServer
[hide private]
[frames] | no frames]

Class BaseLDAPServer

source code

twisted.internet.protocol.BaseProtocol --+    
                                         |    
        twisted.internet.protocol.Protocol --+
                                             |
                                            BaseLDAPServer
Known Subclasses:
proxy.Proxy, LDAPServer

Instance Methods [hide private]
 
__init__(self) source code
 
dataReceived(self, recd)
Called whenever data is received.
source code
 
connectionMade(self)
TCP connection has opened
source code
 
connectionLost(self, reason=<twisted.python.failure.Failure <class 'twisted.internet.error...)
Called when TCP connection has been lost
source code
 
queue(self, id, op) source code
 
unsolicitedNotification(self, msg) source code
 
checkControls(self, controls) source code
 
handleUnknown(self, request, controls, callback) source code
 
_cbLDAPError(self, reason, name) source code
 
_cbHandle(self, response, id) source code
 
failDefault(self, resultCode, errorMessage) source code
 
_callErrorHandler(self, name, resultCode, errorMessage) source code
 
_cbOtherError(self, reason, name) source code
 
handle(self, msg) source code

Inherited from twisted.internet.protocol.BaseProtocol: __providedBy__, makeConnection

Class Variables [hide private]
  debug = False
  berdecoder = <LDAPBERDecoderContext_TopLevel identities={0x10:...

Inherited from twisted.internet.protocol.Protocol: __implemented__, __provides__

Inherited from twisted.internet.protocol.BaseProtocol: connected, transport

Method Details [hide private]

dataReceived(self, recd)

source code 

Called whenever data is received.

Use this method to translate to a higher-level message. Usually, some callback will be made upon the receipt of each complete protocol message.
Overrides: twisted.internet.protocol.Protocol.dataReceived
(inherited documentation)

connectionMade(self)

source code 
TCP connection has opened
Overrides: twisted.internet.protocol.BaseProtocol.connectionMade

connectionLost(self, reason=<twisted.python.failure.Failure <class 'twisted.internet.error...)

source code 
Called when TCP connection has been lost
Overrides: twisted.internet.protocol.Protocol.connectionLost

Class Variable Details [hide private]

berdecoder

Value:
<LDAPBERDecoderContext_TopLevel identities={0x10: LDAPMessage} fallbac\
k=None inherit=<LDAPBERDecoderContext_LDAPMessage identities={0x80: LD\
APControls} fallback=<LDAPBERDecoderContext identities={0x40: LDAPBind\
Request, 0x41: LDAPBindResponse, 0x42: LDAPUnbindRequest, 0x43: LDAPSe\
archRequest, 0x44: LDAPSearchResultEntry, 0x45: LDAPSearchResultDone, \
0x46: LDAPModifyRequest, 0x47: LDAPModifyResponse, 0x48: LDAPAddReques\
t, 0x49: LDAPAddResponse, 0x4a: LDAPDelRequest, 0x4b: LDAPDelResponse,\
 0x4c: LDAPModifyDNRequest, 0x4d: LDAPModifyDNResponse, 0x83: LDAPRefe\
...