Beispiel #1
0
    def __init__(self, portal):
        Resource.__init__(self)
        Loggable.__init__(self)

        # support only basic auth for now
        credentialFactories = [BasicCredentialFactory("cattivo")]
        self.resource = HTTPAuthSessionWrapper(portal, credentialFactories)
Beispiel #2
0
    def __init__(self):
        Resource.__init__(self)
        Loggable.__init__(self)

        log = Resource()
        log.putChild("client", LogClientResource())
        self.putChild("log", log)
Beispiel #3
0
 def __init__(self, firewall):
     self.user = cattivo.config.get("cleaner", "user")
     self.passwd_file = cattivo.config.get("cleaner", "passwd-file")
     checker = FilePasswordDB(self.passwd_file)
     self.realm = CleanerRealm()
     self.portal = Portal(self.realm)
     self.portal.registerChecker(checker)
     self.firewall = firewall
     Site.__init__(self, CleanerResource(self.portal))
     Loggable.__init__(self)
Beispiel #4
0
 def __init__(self, bouncer_address, bouncer_port, clientList):
     Loggable.__init__(self)
     self.clientList = clientList
     self.systemFirewall = IPTablesFirewall(bouncer_address, bouncer_port)
     self.holes = Holes(self.systemFirewall)
Beispiel #5
0
 def __init__(self, firewall, auth_server):
     Site.__init__(self, BouncerResource())
     Loggable.__init__(self)
     self.firewall = firewall
     self.auth_server = auth_server
Beispiel #6
0
 def __init__(self):
     Resource.__init__(self)
     Loggable.__init__(self)
Beispiel #7
0
 def __init__(self):
     Site.__init__(self, ClientListServerResource())
     Loggable.__init__(self)
Beispiel #8
0
    def __init__(self):
        Resource.__init__(self)
        Loggable.__init__(self)

        self.putChild("client", ClientResource())
Beispiel #9
0
 def __init__(self):
     Site.__init__(self, LoggerServerResource())
     Loggable.__init__(self)
Beispiel #10
0
 def __init__(self):
     Loggable.__init__(self)
Beispiel #11
0
 def __init__(self, firewall):
     Loggable.__init__(self)
     self._firewall = firewall
     self._hole_entries =  {}
     self._hole_entries_by_expiration = []
     self._hole_expired_call = None
Beispiel #12
0
 def __init__(self):
     Site.__init__(self, AuthenticatorListServerResource())
     Loggable.__init__(self)
Beispiel #13
0
    def __init__(self):
        Resource.__init__(self)
        Loggable.__init__(self)

        self.putChild("client", AuthenticatorResource())