24#ifndef SQL_AUTHORIZATION_INCLUDED 
   25#define SQL_AUTHORIZATION_INCLUDED 
   47    std::string 
str, 
const std::function<
bool(
const std::string)> &f);
 
   51                       std::function<
void(
const Role_id &, 
bool)> f);
 
std::vector< std::pair< Role_id, bool > > List_of_granted_roles
Definition: auth_internal.h:268
 
Storage container for default auth ids.
Definition: auth_common.h:1077
 
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:168
 
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
 
ABI for instrumented mutexes.
 
char * user
Definition: mysqladmin.cc:60
 
const char * host
Definition: mysqladmin.cc:59
 
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1057
 
boost::graph_traits< Granted_roles_graph >::vertex_descriptor Role_vertex_descriptor
The data type of a vertex in the Granted_roles_graph.
Definition: sql_auth_cache.h:628
 
void iterate_comma_separated_quoted_string(std::string str, const std::function< bool(const std::string)> &f)
Iterate a string by comma separation and apply a function on each chunk separated by the commas.
Definition: sql_authorization.cc:4546
 
void roles_graphml(THD *thd, String *)
Definition: sql_authorization.cc:4891
 
bool check_if_granted_role(LEX_CSTRING user, LEX_CSTRING host, LEX_CSTRING role, LEX_CSTRING role_host)
Examines if a user@host authid is connected to a role@role_host authid by comparing all out-edges if ...
Definition: sql_authorization.cc:6074
 
bool find_if_granted_role(Role_vertex_descriptor v, LEX_CSTRING role, LEX_CSTRING role_host, Role_vertex_descriptor *found_vertex=nullptr)
Given a vertex in the roles graph, this function finds a directly connected vertex given a (role,...
Definition: sql_authorization.cc:6109
 
void get_granted_roles(Role_vertex_descriptor &v, List_of_granted_roles *granted_roles)
Populates a list of authorization IDs that are connected to a specified graph vertex in the global ro...
Definition: sql_authorization.cc:6172
 
mysql_mutex_t LOCK_mandatory_roles
Definition: mysqld.cc:1276
 
std::pair< std::string, std::string > get_authid_from_quoted_string(std::string str)
Return the unquoted authorization id as a user,host-tuple.
Definition: sql_authorization.cc:4592
 
Definition: mysql_lex_string.h:40
 
An instrumented mutex structure.
Definition: mysql_mutex_bits.h:50