MXS-1600: Add case-insensitive matching to MySQLAuth
The authenticator now supports similar identifier matching as the MariaDB server. The lower_case_table_names parameter explains its intended use (case-insensitive identifier matching): https://mariadb.com/kb/en/library/server-system-variables/#lower_case_table_names
This commit is contained in:
@ -183,6 +183,7 @@ static void* mysql_auth_init(char **options)
|
||||
instance->cache_dir = NULL;
|
||||
instance->inject_service_user = true;
|
||||
instance->skip_auth = false;
|
||||
instance->lower_case_table_names = false;
|
||||
instance->handle = NULL;
|
||||
|
||||
for (int i = 0; options[i]; i++)
|
||||
@ -209,6 +210,10 @@ static void* mysql_auth_init(char **options)
|
||||
{
|
||||
instance->skip_auth = config_truth_value(value);
|
||||
}
|
||||
else if (strcmp(options[i], "lower_case_table_names") == 0)
|
||||
{
|
||||
instance->lower_case_table_names = config_truth_value(value);
|
||||
}
|
||||
else
|
||||
{
|
||||
MXS_ERROR("Unknown authenticator option: %s", options[i]);
|
||||
|
Reference in New Issue
Block a user