Commit b15f1048 by btimby

Renamed ServerInterface to BaseServerInterface (should be overridden for authentication)

parent e041080d
...@@ -266,7 +266,7 @@ class SFTPRequestHandler(SocketServer.BaseRequestHandler): ...@@ -266,7 +266,7 @@ class SFTPRequestHandler(SocketServer.BaseRequestHandler):
""" """
Start the paramiko server, this will start a thread to handle the connection. Start the paramiko server, this will start a thread to handle the connection.
""" """
self.transport.start_server(server=ServerInterface()) self.transport.start_server(server=BaseServerInterface())
class ThreadedTCPServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer): class ThreadedTCPServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer):
...@@ -298,7 +298,7 @@ class BaseSFTPServer(ThreadedTCPServer): ...@@ -298,7 +298,7 @@ class BaseSFTPServer(ThreadedTCPServer):
self.host_key = host_key self.host_key = host_key
if RequestHandlerClass is None: if RequestHandlerClass is None:
RequestHandlerClass = SFTPRequestHandler RequestHandlerClass = SFTPRequestHandler
SocketServer.TCPServer.__init__(self,address,RequestHandlerClass) SocketServer.TCPServer.__init__(self, address, RequestHandlerClass)
def shutdown_request(self, request): def shutdown_request(self, request):
# Prevent TCPServer from closing the connection prematurely # Prevent TCPServer from closing the connection prematurely
...@@ -309,7 +309,7 @@ class BaseSFTPServer(ThreadedTCPServer): ...@@ -309,7 +309,7 @@ class BaseSFTPServer(ThreadedTCPServer):
return return
class ServerInterface(paramiko.ServerInterface): class BaseServerInterface(paramiko.ServerInterface):
""" """
Paramiko ServerInterface implementation that performs user authentication. Paramiko ServerInterface implementation that performs user authentication.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment