Sammy Larbi
2017-04-27 19:10:41 UTC
Hi,
When I require TLS, but attempt to connect with plain text, proftpd
responds first with a 200 response code, and then after the user sends
credentials, it responds with a 550 response code. I would expect a 534.
I am using ProFTPD Version 1.3.5b-4 on Debian.
Here is what the session looks like from FileZilla, when I tell it to
connect without TLS:
Status: Resolving address of ftp.example.com
Status: Connecting to 127.0.0.1:21...
Status: Connection established, waiting for welcome message...
Response: 220 ProFTPD 1.3.5b Server (ftp.example.com) [::ffff:127.0.0.1]
Command: USER example_user
Response: 550 SSL/TLS required on the control channel
Error: Could not connect to server
Why doesn't it respond immediately with 534 instead of 220, and is there a
way to force it to do so? I would prefer if users were told they cannot
connect without TLS before they send their username.
Failing that, why doesn't it respond with 534 Could Not Connect to Server -
Policy Requires SSL instead of 550, which is supposed to be for errors
related to the file system?
And is there a way to force it to give the correct code?
Thanks for your help!
When I require TLS, but attempt to connect with plain text, proftpd
responds first with a 200 response code, and then after the user sends
credentials, it responds with a 550 response code. I would expect a 534.
I am using ProFTPD Version 1.3.5b-4 on Debian.
Here is what the session looks like from FileZilla, when I tell it to
connect without TLS:
Status: Resolving address of ftp.example.com
Status: Connecting to 127.0.0.1:21...
Status: Connection established, waiting for welcome message...
Response: 220 ProFTPD 1.3.5b Server (ftp.example.com) [::ffff:127.0.0.1]
Command: USER example_user
Response: 550 SSL/TLS required on the control channel
Error: Could not connect to server
Why doesn't it respond immediately with 534 instead of 220, and is there a
way to force it to do so? I would prefer if users were told they cannot
connect without TLS before they send their username.
Failing that, why doesn't it respond with 534 Could Not Connect to Server -
Policy Requires SSL instead of 550, which is supposed to be for errors
related to the file system?
And is there a way to force it to give the correct code?
Thanks for your help!