You want to set the password for a user using LDAP.
You have to first enable SSL/TLS support in your Active Directory domain. See Recipe 14.1 for more on this.
You can then set the
unicodePwd attribute of a
user object using LDAP operations over an SSL or
The value for the
unicodePwd attribute must be a
Unicode string that is surrounded by quotes and Base64 encoded. See
Recipe 10.4 for more on encoding text with
unicodePwd attribute can be directly modified
over a SSL or TLS connection, but it can never be read.