LDAP Self Service Password is a small nodejs project which allow users the ability to change your password in ldap.
$ npm install .Copy the original config file and make the propper changes:
$ cp config/default.json.dist config/default.jsonThis script is a small piece of code responsible for changing the password on LDAP.
For security reasons the nodejs app is not allowed to change the LDAP password directly. We need a secure connection (ssh) with the LDAP machine to run this script.
Again, for security reasons, the LDAP admin password is stored in LDAP machine,
please adjust the settings variable LDAP_PASS_FILE.
For instance to copy to your.ldap.your.domain, run:
$ scp scripts/change-ldap-password [email protected]:/usr/local/sbin/You need to create the file /root/.lssprc with few variables, copy from
template and make the propper changes:
$ scp config/.lssprc.dist [email protected]:.lssprcNodemon is a utility that will monitor for any changes in your source and automatically restart your server. Perfect for development. Install it using npm.
$ sudo npm install -g nodemonJust use nodemon instead of node to run your code:
$ nodemon app.js