MySQL 8.0.39
Source Code Documentation
|
#include "my_inttypes.h"
Go to the source code of this file.
Classes | |
class | acl_table::Pod_user_what_to_update |
Namespaces | |
namespace | acl_table |
Functions | |
int | replace_user_table (THD *thd, TABLE *table, LEX_USER *combo, Access_bitmask rights, bool revoke_grant, bool can_create_user, acl_table::Pod_user_what_to_update &what_to_update, Restrictions *restrictions=nullptr, I_multi_factor_auth *mfa=nullptr) |
Search and create/update a record for the user requested. More... | |
bool | read_user_table (THD *thd, TABLE *table) |
Read data from user table and fill in-memory caches. More... | |
Variables | |
const ulong | acl_table::USER_ATTRIBUTE_NONE = 0L |
const ulong | acl_table::USER_ATTRIBUTE_RETAIN_PASSWORD = (1L << 0) |
const ulong | acl_table::USER_ATTRIBUTE_DISCARD_PASSWORD = (1L << 1) |
const ulong | acl_table::USER_ATTRIBUTE_RESTRICTIONS = (1L << 3) |
const ulong | acl_table::USER_ATTRIBUTE_FAILED_LOGIN_ATTEMPTS = (1L << 4) |
const ulong | acl_table::USER_ATTRIBUTE_PASSWORD_LOCK_TIME = (1L << 5) |
const ulong | acl_table::USER_ATTRIBUTE_UPDATE_MFA = (1L << 6) |
Read data from user table and fill in-memory caches.
[in] | thd | THD handle |
[in] | table | mysql.user table handle |
true | Error reading data. Don't trust it. |
false | All well. |
int replace_user_table | ( | THD * | thd, |
TABLE * | table, | ||
LEX_USER * | combo, | ||
Access_bitmask | rights, | ||
bool | revoke_grant, | ||
bool | can_create_user, | ||
acl_table::Pod_user_what_to_update & | what_to_update, | ||
Restrictions * | restrictions, | ||
I_multi_factor_auth * | mfa | ||
) |
Search and create/update a record for the user requested.
[in] | thd | The current thread. |
[in] | table | Pointer to a TABLE object of mysql.user table |
[in] | combo | User information |
[in] | rights | Rights requested |
[in] | revoke_grant | Set to true if a REVOKE command is executed |
[in] | can_create_user | Set true if it's allowed to create user |
[in] | what_to_update | Bitmap indicating which attributes need to be updated. |
[in] | restrictions | Restrictions handle if there is any |
[in] | mfa | Interface pointer to Multi factor authentication methods |
0 | OK. |
< | 0 System error or storage engine error happen |
> | 0 Error in handling current user entry but still can continue processing subsequent user specified in the ACL statement. |