diff options
author | Rafal Somla <rafal.somla@oracle.com> | 2011-09-14 16:10:18 +0200 |
---|---|---|
committer | Rafal Somla <rafal.somla@oracle.com> | 2011-09-14 16:10:18 +0200 |
commit | 93f2daf3ad75562a6a173a032668a6e0556684b5 (patch) | |
tree | aadee2ac972792c03350f5f834e8cee27f2d8c52 /sql/client_settings.h | |
parent | 3d6fc1711c8bff76c9bb848d4e06cdd2c2176e64 (diff) | |
download | mariadb-git-93f2daf3ad75562a6a173a032668a6e0556684b5.tar.gz |
Bug#12897501 REPLICATION DOES NOT SUPPORT WINDOWS AUTH PLUG-IN
Connection of slave to master using a replication account which authenticates
with an external plugin was not possible.
Fixed by making sure that the CLIENT_PLUGIN_AUTH capability is set when client connects using mysql_real_connect(). Also, a plugin-dir path used by client library to locate authentication plugins is set based on the analogous server setting. This is done in connect_to_master() function before a call to mysql_real_connect().
Diffstat (limited to 'sql/client_settings.h')
-rw-r--r-- | sql/client_settings.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/sql/client_settings.h b/sql/client_settings.h index d9145bcce26..acae7907aa5 100644 --- a/sql/client_settings.h +++ b/sql/client_settings.h @@ -23,9 +23,18 @@ #include <thr_alarm.h> #include <sql_common.h> -#define CLIENT_CAPABILITIES (CLIENT_LONG_PASSWORD | CLIENT_LONG_FLAG | \ - CLIENT_SECURE_CONNECTION | CLIENT_TRANSACTIONS | \ - CLIENT_PROTOCOL_41 | CLIENT_SECURE_CONNECTION) +/* + Note: CLIENT_CAPABILITIES is also defined in libmysql/client_settings.h. + When adding capabilities here, consider if they should be also added to + the libmysql version. +*/ +#define CLIENT_CAPABILITIES (CLIENT_LONG_PASSWORD | \ + CLIENT_LONG_FLAG | \ + CLIENT_SECURE_CONNECTION | \ + CLIENT_TRANSACTIONS | \ + CLIENT_PROTOCOL_41 | \ + CLIENT_SECURE_CONNECTION | \ + CLIENT_PLUGIN_AUTH) #define read_user_name(A) {} #undef HAVE_SMEM |