Package buildbot :: Module manhole :: Class ArbitraryCheckerManhole
[frames] | no frames]

Class ArbitraryCheckerManhole

source code

 twisted.application.service.Service --+        
                                       |        
twisted.application.service.MultiService --+    
                                           |    
                                _BaseManhole --+
                                               |
                        util.ComparableMixin --+
                                               |
                                              ArbitraryCheckerManhole

This Manhole accepts ssh connections, but uses an arbitrary user-supplied 'checker' object to perform authentication.

Instance Methods
 
__init__(self, port, checker) source code

Inherited from _BaseManhole: startService

Inherited from twisted.application.service.MultiService: __iter__, addService, getServiceNamed, privilegedStartService, removeService, stopService

Inherited from twisted.application.service.Service: __getstate__, __providedBy__, disownServiceParent, setName, setServiceParent

Inherited from util.ComparableMixin: __cmp__, __hash__

Class Variables
  compare_attrs = ["port", "checker"]

Inherited from twisted.application.service.MultiService: __implemented__, __provides__

Inherited from twisted.application.service.Service: name, parent, running

Method Details

__init__(self, port, checker)
(Constructor)

source code 
Parameters:
  • port (string or int) - what port should the Manhole listen on? This is a strports specification string, like 'tcp:12345' or 'tcp:12345:interface=127.0.0.1'. Bare integers are treated as a simple tcp port.
  • checker - an instance of a twisted.cred 'checker' which will perform authentication
Overrides: twisted.application.service.MultiService.__init__