nm_iam_state_user_set_password()

DESCRIPTION

Set password for the specified user.

DECLARATION

bool nm_iam_state_user_set_password(struct nm_iam_user* user, const char* password)

PARAMETERS

user:
[in] the username of the user
password:
[in] the password to set for the user

RETURNS

  • NM_IAM_ERROR_OK: if password was set successfully for the user.
  • NM_IAM_ERROR_NO_SUCH_USER: if the specified user does not exist.