Changing a User's Password (ChangeUserPassword)

Use the ICISite interface ChangeUserPassword method to change a user's password and password type.

Signature:

HRESULT ChangeUserPassword([in] BSTR bstrUser,

[in] BSTR bstrPwd,

[in] int nPwdType);

Password Table

Value

Password type

0

Regular (hashed)

1

Anonymous (regular with empty password)

2

Anonymous (require email as password)

3

OTP-MD4

4

OTP-MD5

5

Literal (no hash) -  For use when importing shadow passwords from a *nix password file. The format must follow: $1$*$*
For example, user: test, password: test would be:

site.ChangeUserPassword "test", "$1$Bn3YdWKv$.BS3Qb2UQTV4SmV1JNN.w/", 5

 

DES-format passwords are not supported. These are password formats without the salt defined (that is, without the $1$).