Nastavení hesla uživatele v Active Directory přes LDAP

Pro přístup je třeba použít LDAPS.

When setting password, it needs to be UTF-16LE and Base64 encoded. In Java, it could be done with:

String source = "\"car\"";
String utf16base64 = new String(Base64.getEncoder().encode(source.getBytes("UTF-16LE")));

UTF-16LE has to be used, UTF-16 is not enough.

Online tool can be used – (select UTF-16).

Details about unicodePwd are there – .