Wednesday 15 April 2015

node.js - How Do I Assign LDAP Password Via LDAPjs? -



node.js - How Do I Assign LDAP Password Via LDAPjs? -

i'm using ldapjs.

i got code sites:

var newuser = { cn: 'new guy', sn: 'guy', uid: 'nguy', mail: 'nguy@example.org', objectclass: 'inetorgperson', userpassword: ssha.create('s00prs3cr3+') }

the thing is, password saved octetstring, , can't used login. here knows how assign password using node (ldapjs preferred)?

try saving in plain text.

most ldap server implementations expect receive password in plain text , server encrypt password.

there dependancies on ldap server implementation , configuration.

-jim

oh, did not mention ad. active directory quite different. uses unicodepassword, not userpassword. password operations must on encrypted connection. , finally, password must "text value in utf-16". quotes required.

node.js ldap ldapjs

No comments:

Post a Comment