MySQL 9.1.0
Source Code Documentation
|
#include <security_context.h>
Public Attributes | |
mysql_service_status_t(* | lookup )(Security_context_handle ctx, const char *user, const char *host, const char *ip, const char *db) |
Looks up in the defined user accounts an account based on the user@host[ip] combo supplied and checks if the user has access to the database requested. More... | |
mysql_service_status_t(* s_mysql_mysql_account_database_security_context_lookup::lookup) (Security_context_handle ctx, const char *user, const char *host, const char *ip, const char *db) |
Looks up in the defined user accounts an account based on the user@host[ip] combo supplied and checks if the user has access to the database requested.
The lookup is done in exactly the same way as at login time. The new security context need to checkout additional privileges using the checkout_acl method.
[in] | ctx | The handle of the security context to update |
[in] | user | The user name to look up |
[in] | host | The host name to look up |
[in] | ip | The ip of the incoming connection |
[in] | db | The database to check access to |
true | failure |
false | success |