nm_iam_create_user()

DESCRIPTION

Create a user in the IAM state while the system is running.

DECLARATION

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

PARAMETERS

iam:
[in] IAM module to manipulate
username:
[in] the username of the new user

RETURNS

  • NM_IAM_ERROR_USER_EXISTS: if the specified user already exists.
  • NM_IAM_ERROR_OK: if the user was created successfully.
  • NM_IAM_ERROR_INVALID_ARGUMENT: if the username was too long or invalid.
  • NM_IAM_ERROR_INTERNAL: if allocation failed