/* Plugin variables*/ #include 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);