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
commit6d7aceeead15eeefe720a2cbb1fe8f955ceb40fd (patch)
treebd892aab620dc4445a50c9cacc33c5feddfbe420 /sql-common
parentd410bdb9a82095aff64db3d5ed7ff52fd6a8f3be (diff)
downloadmariadb-git-6d7aceeead15eeefe720a2cbb1fe8f955ceb40fd.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
};