MySQL 8.3.0
Source Code Documentation
s_mysql_mysql_account_database_security_context_lookup Struct Reference

#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...
 

Member Data Documentation

◆ lookup

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.

Parameters
[in]ctxThe handle of the security context to update
[in]userThe user name to look up
[in]hostThe host name to look up
[in]ipThe ip of the incoming connection
[in]dbThe database to check access to
Return values
truefailure
falsesuccess

The documentation for this struct was generated from the following file: