Coder Social home page Coder Social logo

Comments (7)

TalAloni avatar TalAloni commented on August 20, 2024

You ask a very complex question and start with "Not a big question".
In modern authentication schemes, passwords are not transmitted to the server, the client usually sends a "proof" that it knows the password, but not the password itself. the server should have its own means to authenticate the proof sent by the client. in most modern implementations, the server itself does not have direct access to the password.
this is a huge topic that is outside the scope of the "issues" section of the library.

from smblibrary.

TalAloni avatar TalAloni commented on August 20, 2024

I plan to implement it through a database, so your built-in class of blocking requests will not help.

This sentence is likely to be incorrect, IndependentNTLMAuthenticationProvider can be used with a database.

from smblibrary.

nvd05 avatar nvd05 commented on August 20, 2024

I realize that from a security standpoint this is not the best way, however it is the most effective way to see if there are some not-so-good people trying to pick up the password and login to the server.

So far, at the moment the server is running an FTP server via the pyftpdlib library and the logging of authorization goes into a database. So: as soon as I bought a public IP, immediately some bot appeared, which every 5 seconds for several hours picking up passwords and logins (I can send a screenshot, but I think you already assume what it is).

If you still don't agree to make the password available, please suggest alternative ways to check such people.

from smblibrary.

nvd05 avatar nvd05 commented on August 20, 2024

This sentence is likely to be incorrect, IndependentNTLMAuthenticationProvider can be used with a database.

When I looked at your library code, I found a flood protection in it. This is what I call "protection", although it is only protection against too many requests.

from smblibrary.

TalAloni avatar TalAloni commented on August 20, 2024

If you still don't agree to make the password available, please suggest alternative ways to check such people.

I'm repeating again that passwords are not transmitted to the server, the library cannot provide what it does not have.

To limit a user from too many unsuccessfully login attempts you simply have to know the username and that the login attempt was unsuccessful. the library supports that as you can provide your own authentication mechanism (or use a proxy design pattern). (and you definitely do not need the password)

Please understand that I'm a volunteer with very little time, please do your homework and refrain from wasting my time.

from smblibrary.

nvd05 avatar nvd05 commented on August 20, 2024

I think I understand what you are trying to say.
The password is transmitted in encoded form (bytes) and, as I understand, it is impossible to decode it.

Am I understanding you correctly?

from smblibrary.

TalAloni avatar TalAloni commented on August 20, 2024

Your phrasing is a bit odd, but essentially yes. if you wish to understand it better I suggest you read up on cryptography and modern authentication schemes.

from smblibrary.

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.