summaryrefslogtreecommitdiff
path: root/plugin/auth_gssapi/server_plugin.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2015-12-24 15:28:26 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2015-12-24 15:28:26 +0100
commit56a6e54f48be04f3e7832e7ffad1f585e859aaca (patch)
tree6737b6e5a5a48f3d8bb2ca19670bd5b998f44d7c /plugin/auth_gssapi/server_plugin.h
parent8efdfc8b58a84f8e8d62f0bb8b31f5b763664c06 (diff)
downloadmariadb-git-wlad-gssapi.tar.gz
GSSAPI/SSPI authenticationwlad-gssapi
Diffstat (limited to 'plugin/auth_gssapi/server_plugin.h')
-rw-r--r--plugin/auth_gssapi/server_plugin.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/plugin/auth_gssapi/server_plugin.h b/plugin/auth_gssapi/server_plugin.h
new file mode 100644
index 00000000000..0e0ab7a257a
--- /dev/null
+++ b/plugin/auth_gssapi/server_plugin.h
@@ -0,0 +1,23 @@
+/* Plugin variables*/
+#include <mysql/plugin_auth.h>
+typedef enum
+{
+ PLUGIN_MECH_KERBEROS = 0,
+ PLUGIN_MECH_SPNEGO = 1,
+ PLUGIN_MECH_DEFAULT = 2
+}PLUGIN_MECH;
+
+extern unsigned long srv_mech;
+extern char *srv_principal_name;
+extern char *srv_mech_name;
+extern char *srv_keytab_path;
+/*
+ Check, with GSSAPI/SSPI username of logged on user.
+
+ Depending on use_full_name parameter, compare either full name
+ (principal name like user@real), or local name (first component)
+*/
+int plugin_init();
+int plugin_deinit();
+
+int auth_server(MYSQL_PLUGIN_VIO *vio, const char *username, size_t username_len, int use_full_name);