MXS-1354: Store users in a new format
The users are now stored as an array of JSON objects. Legacy users are automatically upgraded once they are loaded and a backup of the original users file is created. Removed the password parameter from the `remove user` maxadmin command as well as all of the relevant functions. Requiring that an administrator knows the password of the account to be deleted is not a sound requirement now that, at least in theory, two types of accounts can be created.
This commit is contained in:
@ -78,7 +78,7 @@ const char* admin_disable_linux_account(const char *uname);
|
||||
bool admin_linux_account_enabled(const char *uname);
|
||||
|
||||
const char* admin_add_inet_user(const char *uname, const char *password);
|
||||
const char* admin_remove_inet_user(const char *uname, const char *password);
|
||||
const char* admin_remove_inet_user(const char* uname);
|
||||
bool admin_inet_user_exists(const char *uname);
|
||||
bool admin_verify_inet_user(const char *uname, const char *password);
|
||||
bool admin_is_admin_user(const char* username);
|
||||
|
Reference in New Issue
Block a user