I'm using ldapjs
.
I got this code from some sites:
var newUser = {
cn: 'new guy',
sn: 'guy',
uid: 'nguy',
mail: 'nguy@example.org',
objectClass: 'inetOrgPerson',
userPassword: ssha.create('s00prs3cr3+')
}
The thing is, the password saved as OctetString
, and can't be used for login. Do anyone here knows how do I assign password using node
(ldapjs
preferred)?