MySQL 5.6.14 Source Code Document
|
#include <plugin_auth.h>
Public Attributes | |
char * | user_name |
unsigned int | user_name_length |
const char * | auth_string |
unsigned long | auth_string_length |
char | authenticated_as [MYSQL_USERNAME_LENGTH+1] |
char | external_user [512] |
int | password_used |
const char * | host_or_ip |
unsigned int | host_or_ip_length |
Provides server plugin access to authentication information
Definition at line 43 of file plugin_auth.h.
const char* st_mysql_server_auth_info::auth_string |
A corresponding column value from the mysql.user table for the matching account name
Definition at line 60 of file plugin_auth.h.
unsigned long st_mysql_server_auth_info::auth_string_length |
Length of auth_string
Definition at line 65 of file plugin_auth.h.
char st_mysql_server_auth_info::authenticated_as[MYSQL_USERNAME_LENGTH+1] |
Matching account name as found in the mysql.user table. A plugin can override it with another name that will be used by MySQL for authorization, and shown in CURRENT_USER()
Definition at line 72 of file plugin_auth.h.
char st_mysql_server_auth_info::external_user[512] |
The unique user name that was used by the plugin to authenticate. Plugins should put null-terminated UTF-8 here. Available through the @EXTERNAL_USER variable.
Definition at line 80 of file plugin_auth.h.
const char* st_mysql_server_auth_info::host_or_ip |
Set to the name of the connected client host, if it can be resolved, or to its IP address otherwise.
Definition at line 96 of file plugin_auth.h.
unsigned int st_mysql_server_auth_info::host_or_ip_length |
Length of host_or_ip
Definition at line 101 of file plugin_auth.h.
int st_mysql_server_auth_info::password_used |
This only affects the "Authentication failed. Password used: %s" error message. has the following values : 0 : s will be NO. 1 : s will be YES. 2 : there will be no s. Set it as appropriate or ignore at will.
Definition at line 90 of file plugin_auth.h.
char* st_mysql_server_auth_info::user_name |
User name as sent by the client and shown in USER(). NULL if the client packet with the user name was not received yet.
Definition at line 49 of file plugin_auth.h.
unsigned int st_mysql_server_auth_info::user_name_length |
Length of user_name
Definition at line 54 of file plugin_auth.h.