summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorRafal Somla <rafal.somla@oracle.com>2011-04-28 21:17:29 +0200
committerRafal Somla <rafal.somla@oracle.com>2011-04-28 21:17:29 +0200
commitc8e48ac3a495ba8f0568acf3a32df25505cd1b55 (patch)
treebd892aab620dc4445a50c9cacc33c5feddfbe420 /sql-common
parentf710d831bcd6856d2e0722c5185d8638073a3c37 (diff)
downloadmariadb-git-c8e48ac3a495ba8f0568acf3a32df25505cd1b55.tar.gz
Bug#11766631 (59780) - Move the client authentication_windows plugin
into the server repository This patch adds client windows authentication plugin code to the client library libmysql (only on Windows platform). The plugin is compiled into the library and added to the list of built-in plugins. This way clients should be able to connect to a server which uses windows authentication plugin even as an SQL user which uses such authentication. Note: this makes the client library to depend on Secur32 Windows system library. When building clients, they must be linked against Secur32. Command mysql_config --libs correctly lists Secur32 as a required dependency.
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/client.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index 90d07f3e409..abaea310aae 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -2314,11 +2314,18 @@ static auth_plugin_t clear_password_client_plugin=
clear_password_auth_client
};
+#ifdef AUTHENTICATION_WIN
+extern auth_plugin_t win_auth_client_plugin;
+#endif
+
struct st_mysql_client_plugin *mysql_client_builtins[]=
{
(struct st_mysql_client_plugin *)&native_password_client_plugin,
(struct st_mysql_client_plugin *)&old_password_client_plugin,
(struct st_mysql_client_plugin *)&clear_password_client_plugin,
+#ifdef AUTHENTICATION_WIN
+ (struct st_mysql_client_plugin *)&win_auth_client_plugin,
+#endif
0
};