Issue 274 in pyftpdlib: pyftpdlib 1.2.0 TLS_FTPHandler ThrottledDTPHandler

1 view
Skip to first unread message

pyft...@googlecode.com

unread,
Nov 12, 2013, 2:33:35 AM11/12/13
to pyftpdli...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Component-Library

New issue 274 by chen.c...@upai.com: pyftpdlib 1.2.0 TLS_FTPHandler
ThrottledDTPHandler
http://code.google.com/p/pyftpdlib/issues/detail?id=274

Recently i need to add tls over our company's ftp,however, can't make it
anyway,then i try the demo's code,set ThrottledDTPHandler to dtp_handler in
demo's tls_ftpd.py,not working out.is it impossible put those two handler
together?

ftp client is filezilla, pyftpdlib and openssl are new.

import os

from pyftpdlib.authorizers import DummyAuthorizer
from pyftpdlib.handlers import TLS_FTPHandler
from pyftpdlib.handlers import import os

from pyftpdlib.authorizers import DummyAuthorizer
from pyftpdlib.handlers import TLS_FTPHandler
from pyftpdlib.handlers import ThrottledDTPHandler
from pyftpdlib.servers import FTPServer

CERTFILE = os.path.abspath(os.path.join(os.path.dirname(__file__),
"keycert.pem"))

def main():
authorizer = DummyAuthorizer()
authorizer.add_user('user', '12345', '.', perm='elradfmw')
authorizer.add_anonymous('.')
handler = TLS_FTPHandler
handler.dtp_handler = ThrottledDTPHandler
handler.certfile = CERTFILE
handler.authorizer = authorizer
handler.tls_control_required = True
# handler.dtp_handler = DTPHandler
# requires SSL for both control and data channel
#handler.tls_control_required = True
# handler.tls_data_required = False
server = FTPServer(('127.0.0.1', 2121), handler)
server.serve_forever()
print handler.dtp_handler
if __name__ == '__main__':
main()
from pyftpdlib.servers import FTPServer

CERTFILE = os.path.abspath(os.path.join(os.path.dirname(__file__),
"keycert.pem"))

def main():
authorizer = DummyAuthorizer()
authorizer.add_user('user', '12345', '.', perm='elradfmw')
authorizer.add_anonymous('.')
handler = TLS_FTPHandler
handler.dtp_handler = ThrottledDTPHandler
handler.certfile = CERTFILE
handler.authorizer = authorizer
handler.tls_control_required = True
# handler.dtp_handler = DTPHandler
# requires SSL for both control and data channel
#handler.tls_control_required = True
# handler.tls_data_required = False
server = FTPServer(('127.0.0.1', 2121), handler)
server.serve_forever()
if __name__ == '__main__':
main()

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

pyft...@googlecode.com

unread,
Nov 12, 2013, 3:30:27 AM11/12/13
to pyftpdli...@googlegroups.com

Comment #1 on issue 274 by g.rodola: pyftpdlib 1.2.0 TLS_FTPHandler
ThrottledDTPHandler
http://code.google.com/p/pyftpdlib/issues/detail?id=274

Can you post this on the mailing list?
https://groups.google.com/forum/#!forum/pyftpdlib

pyft...@googlecode.com

unread,
Apr 11, 2014, 5:33:48 PM4/11/14
to pyftpdli...@googlegroups.com
Updates:
Status: Invalid

Comment #2 on issue 274 by g.rodola: pyftpdlib 1.2.0 TLS_FTPHandler
ThrottledDTPHandler
http://code.google.com/p/pyftpdlib/issues/detail?id=274

(No comment was entered for this change.)
Reply all
Reply to author
Forward
0 new messages