Git Product home page Git Product logo

Comments (3)

vesse avatar vesse commented on August 17, 2024

Hi,

No, you cannot do that. The point of hashed passwords usually is that they cannot be (easily) decrypted. In LDAP authentication the LDAP server validates the user given password in bind, there should be no need for you to handle the password, at least authentication wise. Use Google if you wish to find a tool for cracking SSHA hashes.

from passport-ldapauth.

aneelaSaleem avatar aneelaSaleem commented on August 17, 2024

Thanks vesse!

I have been searching it for a long while. I did not find any way yet. I have enabled SSL communication in LDAP server. And i'm using ldapjs client, but unfortunately that client stores the password in cleartext because if we encrypt/hash the password it can not be decrypted in bind operation. So should we leave it clear text or any other suggested solution?

from passport-ldapauth.

vesse avatar vesse commented on August 17, 2024

I'm not too familiar with LDAP servers, but I believe it should be the server that performs the hashing, and quick googling showed that at least openLDAP can be configured to hash the passwords. This way it would not be your problem, and the server could perform bind as it would be able to hash the bind password and compare it to the hash in it's database.

Now if you have manually hashed the password and stored it to LDAP server that is configured to use plain text authentication it expects the hash to be passed as password in bind. If you use algorithm that will produce same output for same input on every call you could add a middleware that will change the user provided password to the hash before it is passed on to passport-ldapauth.

from passport-ldapauth.

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.