1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

CONC-544: restrict authentication plugins

Added new option MARIADB_OPT_RESTRICTED_AUTH (and corresponding
"restricted-auth" option for configuration files) which specifies
on or more comma spearated authentication plugins which are allowed
for authenication.

If the server asks for an authentication plugin not listed in this
option the connect attempt will fail with error CR_PLUGIN_NOT_ALLOWED.
This commit is contained in:
Georg Richter
2021-09-14 06:24:56 +02:00
parent fc9bfcd80a
commit 7e0be5a919
7 changed files with 90 additions and 2 deletions

View File

@@ -247,7 +247,8 @@ extern const char *SQLSTATE_UNKNOWN;
MARIADB_OPT_INTERACTIVE,
MARIADB_OPT_PROXY_HEADER,
MARIADB_OPT_IO_WAIT,
MARIADB_OPT_SKIP_READ_RESPONSE
MARIADB_OPT_SKIP_READ_RESPONSE,
MARIADB_OPT_RESTRICTED_AUTH
};
enum mariadb_value {