nm_iam_set_user_password()

DESCRIPTION

Set password for the specified user.

DECLARATION

enum nm_iam_error nm_iam_set_user_password(struct nm_iam* iam, const char* username, const char* password)

PARAMETERS

iam:
[in] IAM module to manipulate
username:
[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.
  • NM_IAM_ERROR_INVALID_ARGUMENT: if the password was too long.