summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorRafal Somla <rafal.somla@oracle.com>2011-09-14 16:10:18 +0200
committerRafal Somla <rafal.somla@oracle.com>2011-09-14 16:10:18 +0200
commit3b17a24effa6ba40ef4c3a8e14f2ffefc1997bdf (patch)
treeaadee2ac972792c03350f5f834e8cee27f2d8c52 /libmysql
parent0e034eaad3a1fbbf01811c8dc4230afef7ec399b (diff)
downloadmariadb-git-3b17a24effa6ba40ef4c3a8e14f2ffefc1997bdf.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 'libmysql')
-rw-r--r--libmysql/client_settings.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libmysql/client_settings.h b/libmysql/client_settings.h
index d04d61067f2..ecc9a7773ca 100644
--- a/libmysql/client_settings.h
+++ b/libmysql/client_settings.h
@@ -22,6 +22,11 @@
extern uint mysql_port;
extern char * mysql_unix_port;
+/*
+ Note: CLIENT_CAPABILITIES is also defined in sql/client_settings.h.
+ When adding capabilities here, consider if they should be also added to
+ the server's version.
+*/
#define CLIENT_CAPABILITIES (CLIENT_LONG_PASSWORD | \
CLIENT_LONG_FLAG | \
CLIENT_TRANSACTIONS | \