[CONC-311] Attempting to connect using the gssapi plugin Created: 2018-02-18 Updated: 2018-02-19 Resolved: 2018-02-19 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | 3.0.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Charles S. Cotton | Assignee: | Georg Richter |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows 10 x64, build 16299.192. |
||
| Description |
|
I have encountered the following bug in the latest mariadb connector-c, or maybe I'm just doing something wrong. I am trying to authenticate with auth_gssapi (windows authentication), but it fails. The following 'if' test, starting at line 423, in ma_client_plugin.c, within the 'mysql_load_plugin_v' function, if (type >=0 && type != plugin->type) { errmsg= "type mismatch"; goto err; }I have correctly defined 'gssapi' users and have proven that it works by successfully logging Here is my code containing the 'mysql_real_connect() function: // MySQL Initialization. // Connect to MySQL Server. } Probably some of the mysql_optionsv() calls are unnecessary, but the two critical ones, Note: if I temporarily disable the if block, above, that is not passing, the next test that validates the plugin name if (strcmp(name, plugin->name)) { errmsg= "name mismatch"; goto err; }And if I temporarily disable the name test, and trick the code into finally calling the plugin->connect statement, So something is seriously wrong here. Any ideas? |
| Comments |
| Comment by Georg Richter [ 2018-02-19 ] |
|
The gssapi plugin is an authentication plugin, not a connection plugin. There is no need to load the plugin, this will be done automatically if you login with a username which requires gssapi/kerberos authentication (see https://mariadb.com/kb/en/library/authentication-plugin-gssapi/). If the gssapi/kerberos plugin was build as dynamic plugin (.dll) make sure it is in your path or the environment variable MARIADB_PLUGIN_DIR points to the right path. |
| Comment by Charles S. Cotton [ 2018-02-19 ] |
|
The problem, Georg, is that it does not work. Attempting to login with mysql_real_connect() fails for a valid gssapi user. I wish you had not summarily closed this issue. You haven't properly solved anyth;ing at all! Your response is the worst of the worst. The link you've provided does explain how to create gssapi users and activate the plugin, but I had read that link and performed those steps long before creating this post, Georg! |