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

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 – http://www5.rptea.com/base64/ (select UTF-16).

Details about unicodePwd are there – https://technet.microsoft.com/en-us/magazine/ff848710.aspx .