rsmills36 / pyftpdlib

Automatically exported from code.google.com/p/pyftpdlib
Other
0 stars 0 forks source link

use lftp connect TLS_FTPHandler is error #226

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.python 2.7   pyftpdlib 0.7.0  ubuntu 12.04
2.python ftps-server.py
  Starting FTP server

3.lftp ftps://aa:aa@127.0.0.1 is error
root@bt:~/ftps# lftp ftps://fa:aa@127.0.0.1:21
lftp fa@127.0.0.1:~> ls
ls: Fatal error: gnutls_handshake: A TLS packet with unexpected length was 
received.

127.0.0.1:49461 ==> 220 pyftpdlib 0.7.0 ready.
[]@127.0.0.1:49460 Disconnected.

4.use python 2.7 ftplib is true

In [1]: from ftplib import FTP_TLS

In [2]: ftps = FTP_TLS('127.0.0.1','user','12345')

error_perm: 530 Authentication failed.

[]127.0.0.1:43185 Connected.
127.0.0.1:43185 ==> 220 pyftpdlib 0.7.0 ready.
127.0.0.1:43185 <== AUTH TLS
127.0.0.1:43185 ==> 234 AUTH TLS successful.
127.0.0.1:43185 <== USER user
127.0.0.1:43185 ==> 331 Username ok, send password.
127.0.0.1:43185 <== PASS ******
--------------------------------------------------
user:user password:12345
--------------------------------------------------
127.0.0.1:43185 ==> 530 Authentication failed.

Original issue reported on code.google.com by nmwe...@gmail.com on 15 Nov 2012 at 2:27

Attachments:

GoogleCodeExporter commented 9 years ago
> class MyHandler(TLS_FTPHandler,FTPHandler):

Why are you subclassing from 2 classes? You shouldn't.
It must be either TLS_FTPHandler *or* FTPHandler.

Original comment by g.rodola on 15 Nov 2012 at 2:35

GoogleCodeExporter commented 9 years ago
but  use of class MyHandler (TLS_FTPHandler) is the same

Original comment by nmwe...@gmail.com on 15 Nov 2012 at 3:00

GoogleCodeExporter commented 9 years ago
 lftp ftp://fa:aa@127.0.0.1:21 is right

Original comment by nmwe...@gmail.com on 16 Nov 2012 at 1:20