- https://www.thegeekstuff.com/2015/02/openldap-add-users-groups
- http://www.learnitguide.net/2017/11/how-to-create-ldap-users-and-groups.html
- LDAP TLS https://www.digitalocean.com/community/tutorials/how-to-encrypt-openldap-connections-using-starttls
https://unix.stackexchange.com/questions/149344/phpldapadmin-with-starttls
Installing LDAP
LDAP vulnerability in real world
- Blind mode on Joomla Login
- Private information disclosure on Slack
NodeJS LDAP
var ldap = require('ldapjs');
function authDN(dn, password, cb) {
var client = ldap.createClient({url: 'ldap://YOUR_SERVER:PORT'});
client.bind(dn, password, function (err) {
client.unbind();
cb(err === null, err);
});
}
function output(res, err) {
if (res) {
console.log('success');
} else {
console.log('failure');
}
}
// should print "success"
authDN('cn=user', 'goodpasswd', output);
// should print "failure"
authDN('cn=user', 'badpasswd', output);