I know the password string must contain double quotes and must be UTF-16 encrypted.
So I have tried this way:
let passwdUtf16 = Buffer.from(""mypwd"", 'utf16le');
let change = new Change({ operation: 'replace', modification: new Attribute({ type: unicodePwd;binary', values: [passwdUtf16] }) });
await client.modify('cn=myusername,ou=MyOrg,ou=Organizations,dc=myproject,dc=local', change);
but I’m getting this error: {“code”:53,”name”:”UnwillingToPerformError”}
Am I getting something wrong in the syntax ? I’ve tried unicodePwd;binary, UnicodePwd;binary, unicodePwd, unicodePwd for type field with same results.
ldapts page: https://github.com/ldapts/ldapts
What am I doing wrong ?