[MDEV-14483] auth_gssapi_client.so plugin cannot be loaded Created: 2017-11-23  Updated: 2017-11-24  Resolved: 2017-11-24

Status: Closed
Project: MariaDB Server
Component/s: Plugins, Server
Affects Version/s: 10.2.10
Fix Version/s: 10.2.11

Type: Bug Priority: Critical
Reporter: Michal Schorm Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Environment:

Fedora - All



 Description   

When I try to load a auth_gssapi_client.so plugin:

$ mysql -u user -h db.example.com --plugin-dir=/usr/lib64/mariadb/plugin/ akonadi
 
ERROR 2059 (HY000): Plugin auth_gssapi_client could not be loaded: not a plugin

The server side registers the auth_gssapi plugin properly, but the client side doesn't work

More info here



 Comments   
Comment by Michal Schorm [ 2017-11-23 ]

Possible duplicate of MDEV-9321 ?

Comment by Sergei Golubchik [ 2017-11-23 ]

updated the description to copy the most relevant part from the redhat bugzilla

Comment by Michal Schorm [ 2017-11-23 ]

Actually, I copied the /var/log output, because I was also able to reproduce it following way:

$ cat /etc/my.cnf.d/auth_gssapi.cnf
[mariadb]
plugin-load-add=auth_gssapi_client.so

loaded by the configuration

$ sudo systemctl restart mariadb
$ mysql
MariaDB [(none)]>

lead to original error:

2017-11-23 21:31:52 140340318318016 [ERROR] Can't find symbol '_mysql_plugin_interface_version_' in library
2017-11-23 21:31:52 140340318318016 [ERROR] Couldn't load plugins from 'auth_gssapi_client.so'.

I didn't manage to reproduce this one a s the mysql started normally:

$ mysql --plugin-dir=/usr/lib64/mariadb/plugin/
ERROR 2059 (HY000): Plugin auth_gssapi_client could not be loaded: not a plugin

However, the amount of plugins loaded ("show plugins" query) remained the same if '--plugin-dir' used or not. (There are about 40 plugins in that directory)

Comment by Sergei Golubchik [ 2017-11-23 ]

Yes, and your reproducing was invalid — you tried to load a client plugin into the server, and correctly got an error that the client plugin does not contain the symbol that only server plugins have. This was very clear from the error log, so I've replaced the description using the text from your link, merely to avoid this bug report being immediately closed as "not a bug".

I didn't try to repeat it yet, but it looks plausible, not something that can be rejected outright.

Comment by Vladislav Vaintroub [ 2017-11-24 ]

I noticed this bug a while ago already, and fixed in C/C master branch https://github.com/MariaDB/mariadb-connector-c/commit/85d150eec156275c6468b5de490a65b1e069007c

I forgot however that connectors master branch is not used in server build anymore. I cherry-picked this commit into 10.2-server branch.

Generated at Thu Feb 08 08:13:54 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.