mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-23729 MDEV-32218 INFORMATION_SCHEMA table for user data
* A new table INFORMATION_SCHEMA.USERS is introduced. * It stores auxiliary user data * An unprivileged user can access their own data, and that is the main difference with what mysql.global_priv provides * The fields are currently: USER, PASSWORD_ERRORS, PASSWORD_EXPIRATION_TIME * If password_errors is ignored for the user, PASSWORD_ERRORS is NULL * PASSWORD_EXPIRATION_TIME is a timestamp with exact point in time, calculated from password_last_changed and password_lifetime (i.e. days) stored for the user
This commit is contained in:
@@ -150,6 +150,7 @@ bool check_routine_level_acl(THD *thd, privilege_t acl,
|
||||
const char *db, const char *name,
|
||||
const Sp_handler *sph);
|
||||
bool is_acl_user(const LEX_CSTRING &host, const LEX_CSTRING &user);
|
||||
int fill_users_schema_table(THD *thd, TABLE_LIST *tables, COND *cond);
|
||||
int fill_schema_user_privileges(THD *thd, TABLE_LIST *tables, COND *cond);
|
||||
int fill_schema_schema_privileges(THD *thd, TABLE_LIST *tables, COND *cond);
|
||||
int fill_schema_table_privileges(THD *thd, TABLE_LIST *tables, COND *cond);
|
||||
|
Reference in New Issue
Block a user