GithubHelp home page GithubHelp logo

Make PBSZ optional about proftpd HOT 7 CLOSED

proftpd avatar proftpd commented on May 20, 2024
Make PBSZ optional

from proftpd.

Comments (7)

Castaglia avatar Castaglia commented on May 20, 2024

Thanks for the pull request! I may change the TLSOption name to something else later, e.g. TLSOption RFCConformance or somesuch, some name that might be slightly more human-readable, since some users/admins may not be aware of the PBSZ and its role, specifically. But the functionality will stay the same.

from proftpd.

gczuczy avatar gczuczy commented on May 20, 2024

You are most welcome, I've fixed the things you've pointed out in the pull request, please take a look at it again.

I've chosen "RequirePBSZ", because it's specifically about that command, and the error message also mentions this command in reply to PROT, when forgotten. There are a rather large number of relevant RFCs, and even RFC2228 has multiple requirements, that's one of the reasons why I chosen a name for the option with "RFC" in it. Personally I think, that might be misleading and confusing on the long run.

from proftpd.

Castaglia avatar Castaglia commented on May 20, 2024

In the case of FTP over SSL/TLS, there's only one particularly relevant RFC: RFC 4127. However, your point is taken.

Another approach might be to not provide such a TLSOption at all, and simply always treat PBSZ as optional. A quick look through the vsftpd and pure-ftpd source code bases show that those FTP daemons do not enforce a requirement of PBSZ, nor do they provide configurations for requiring them, which lends credence to the idea that the admins running those servers have no need to require a PBSZ command.

from proftpd.

gczuczy avatar gczuczy commented on May 20, 2024

Honestly, I don't really see any reason why couldn't be optional by default, except if some sysadmin is feeling to start a holy crusade against broken clients, and wants to teach the world a lesson. Apart from that, I don't think it would hurt anyone.

Would you like me to change the pull request to make this the default behaviour?

from proftpd.

Castaglia avatar Castaglia commented on May 20, 2024

Yes, please. It's easy enough to add such an option in, later, if/when we find a use case.

from proftpd.

gczuczy avatar gczuczy commented on May 20, 2024

Done, please review. Instead of removing the error return, i've just disabled the codepath with a macro, if that's fine. Might come handy if there's a usecase.

from proftpd.

Castaglia avatar Castaglia commented on May 20, 2024

PR merged to master; thanks!

from proftpd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.