An bettter method to create the unicodePwd Active Directory LDAP field from PHP is:
$unicodePwd = iconv("UTF-8", "UTF-16LE", "\"".$password."\"");
It works when $password is coming from a UTF-8 page. If your $password is not utf-8, change the 1st parameter of iconv.