Package ldaptor :: Package protocols :: Package ldap :: Module svcbindproxy :: Class ServiceBindingProxy
[show private | hide private]
[frames | no frames]

Class ServiceBindingProxy

BaseProtocol --+            
               |            
        Protocol --+        
                   |        
      BaseLDAPServer --+    
                       |    
                   Proxy --+
                           |
                          ServiceBindingProxy


An LDAP proxy that handles non-anonymous bind requests specially.

BindRequests are intercepted and authentication is attempted against each configured service. This authentication is performed against a separate LDAP entry, found by searching for entries with

starting at the identity-base as configured in the config file.

Finally, if the authentication does not succeed against any of the configured services, the proxy can fallback to passing the bind request to the real server.
Method Summary
  __init__(self, services, fallback, *a, **kw)
Initialize the object.
  handle_LDAPBindRequest(self, request, controls, reply)
  timestamp(self)
    Inherited from Proxy
  connectionLost(self, reason)
  connectionMade(self)
TCP connection has opened
  handle_LDAPUnbindRequest(self, request, controls, reply)
  handleUnknown(self, request, controls, reply)
    Inherited from BaseLDAPServer
  checkControls(self, controls)
  dataReceived(self, recd)
  failDefault(self, resultCode, errorMessage)
  handle(self, msg)
  queue(self, id, op)
  unsolicitedNotification(self, msg)
    Inherited from Protocol
  connectionFailed(self)
(Deprecated)

Class Variable Summary
classobj fail_LDAPBindRequest = ldaptor.protocols.pureldap.LDAPBindResponse
bool fallback = False
list services = []
    Inherited from Proxy
NoneType client = None                                                                  
bool unbound = False
list waitingConnect = []
    Inherited from BaseLDAPServer
LDAPBERDecoderContext_TopLevel berdecoder = <LDAPBERDecoderContext_TopLevel identities=...
bool debug = False
    Inherited from Protocol
tuple __implements__ = (<class 'twisted.internet.interfaces.IP...

Method Details

__init__(self, services=None, fallback=None, *a, **kw)
(Constructor)

Initialize the object.
Parameters:
services - List of service names to try to bind against.
fallback - If none of the attempts to authenticate against a specific service succeeded, whether to fall back to the normal LDAP bind mechanism.
Overrides:
ldaptor.protocols.ldap.proxy.Proxy.__init__

Class Variable Details

fallback

Type:
bool
Value:
False                                                                  

services

Type:
list
Value:
[]                                                                     

Generated by Epydoc 2.1 on Fri May 6 14:57:59 2005 http://epydoc.sf.net