MXS-1354: Allow creation of basic users
The type of the user being created is defined at creation time. This allows the creation of basic users. Although the users can be created internally, they cannot yet be created via maxadmin or the REST API.
This commit is contained in:
@ -460,7 +460,7 @@ cdc_set_service_user(SERV_LISTENER *listener)
|
||||
}
|
||||
|
||||
/* add service user */
|
||||
(void)users_add(listener->users, service->credentials.name, newpasswd);
|
||||
(void)users_add(listener->users, service->credentials.name, newpasswd, ACCOUNT_ADMIN);
|
||||
|
||||
MXS_FREE(newpasswd);
|
||||
MXS_FREE(dpwd);
|
||||
@ -510,7 +510,7 @@ cdc_read_users(USERS *users, char *usersfile)
|
||||
}
|
||||
|
||||
/* add user */
|
||||
users_add(users, avro_user, user_passwd);
|
||||
users_add(users, avro_user, user_passwd, ACCOUNT_ADMIN);
|
||||
|
||||
loaded++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user