-
-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PRET (PRE Transfer) command #684
Comments
I made a little patch in order to make Cyberduck compatible with PRET enabled ftps, it just send a "PRET command" command before any of the commands specified in the PRET specifications (http://drftpd.org/index.php/PRET_Specifications). |
Thanks for the patch. I have some notes on this:
|
Replying to [comment:5 dkocher]: a) yes that's what the specs says, but I've seen some servers not spitting out the PRET inside the FEAT command, I think it's better trying to issue a PRET command anyway, in the worst case, we just get a "not implemented" error, and the connection goes on. Also I saw you have a nice "features()" function, but I didn't understand when and if it's called. b) from the specs: "Must be sent before the PASV and ONLY the PASV command. PRET is unneccessary to be sent before any other command, although it can help enable a security feature on clients using Active transfers." so, leaving PRET enabled also for Active connections is not a bad thing. Anyway, adding a check to see if the connection is passive and, only in that case, issue the PRET command is just a matter of add some "if", so if you think it's better, I can add this check. |
an error has been introduced, the server I use for test, allows the use of the FEAT command only to authenticated users: 220 DrFTPD 2.0.2 http://drftpd.org |
ok, working perfectly now, just a note, now the FEAT command is sent before ANY createDataSocket, not just the first one |
Replying to [comment:10 neothematrix]:
Thanks for watching :) Fixed in 0268892. I don't have any more documentation, but you may find at [enterprisedt.net]. |
Some servers, for example drftpd, requires PRET support when connecting in passive mode. It's basically a command that is sent before transfers to inform the server that the client is about to do something.
More info: http://www.drftpd.org/index.php/Distributed_PASV#Solution:_PRET_.28PRE_Transfer.29_command
Attachments
feat_patch
(0.7 KiB)pret_patch
(1.6 KiB)The text was updated successfully, but these errors were encountered: