Utility to parse, check, create and convert LDAP and crypt(3) salted SHA password hashes in node.js. Code is based on jmarca/openldap_ssha, but:
- rewritten in promised manner;
- SSHA2 support (salted SHA256 and salted SHA512);
- crypt(3) functionality added.
May be used to generate ACL passwd files from LDAP directory for a variety of software, that supports crypt(3) format.
Mocha is used for the tests, npm install
followed by npm test
or make test
should run them.
There are some tests originally added by jmarca. Plus some messy tests created to check new functionality, but they need to be refactored.