Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-383

Plugin auth_gssapi_client could not be loaded; missing "/usr/" prefix

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 3.0.6, 3.0.7, 3.0.8
    • 3.0.11, 3.1.2
    • None
    • None
    • Fedora - all

    Description

      https://bugzilla.redhat.com/show_bug.cgi?id=1624533

      After upgrading mariadb-connector-c to 3.0.6-1.fc28, the auth_gssapi_plugin for the client doesn't work properly:
       
      org.kde.pim.akonadiserver: Database error: "Plugin auth_gssapi_client could not be loaded: lib64/mariadb/plugin/auth_gssapi_client.so: cannot open shared object file: No such file or directory QMYSQL: Unable to connect"
       
      Downgrading to 3.0.3-3.fc28, things begin to work immediately.
      

      Could it be related to:
      CONC-277
      or
      CONC-376
      ?

      Attachments

        Issue Links

          Activity

            mschorm Michal Schorm created issue -
            serg Sergei Golubchik made changes -
            Field Original Value New Value
            Description https://bugzilla.redhat.com/show_bug.cgi?id=1624533


            {code:text}
            After upgrading mariadb-connector-c to 3.0.6-1.fc28, the auth_gssapi_plugin for the client doesn't work properly:

            org.kde.pim.akonadiserver: Database error: "Plugin auth_gssapi_client could not be loaded: lib64/mariadb/plugin/auth_gssapi_client.so: cannot open shared object file: No such file or directory QMYSQL: Unable to connect"

            Downgrading to 3.0.3-3.fc28, things begin to work immediately.
            {code}

            Could it be related to:
            https://jira.mariadb.org/browse/CONC-277
            or
            https://jira.mariadb.org/browse/CONC-376
            ?
            https://bugzilla.redhat.com/show_bug.cgi?id=1624533

            {code:text}
            After upgrading mariadb-connector-c to 3.0.6-1.fc28, the auth_gssapi_plugin for the client doesn't work properly:

            org.kde.pim.akonadiserver: Database error: "Plugin auth_gssapi_client could not be loaded: lib64/mariadb/plugin/auth_gssapi_client.so: cannot open shared object file: No such file or directory QMYSQL: Unable to connect"

            Downgrading to 3.0.3-3.fc28, things begin to work immediately.
            {code}

            Could it be related to:
            CONC-277
            or
            CONC-376
            ?
            mschorm Michal Schorm added a comment -

            I was able to reproduce the issue without touching aconadi.

            1) Set up valid /etc/krb5.keytab
            2) enable the gssapi plugin in the configuration file
            3) start server
            4)

            echo "CREATE USER 'krb_usr'@'localhost' IDENTIFIED VIA gssapi;" | mysql
            

            5) Write a simple code and try to connect as that user:

            #include <stdio.h>
            #include <mysql.h>
             
            int main(int argc, char **argv)
            {
              MYSQL *con = mysql_init(NULL);
             
              if (con == NULL)
              {
                  fprintf(stderr, "%s\n", mysql_error(con));
                  exit(1);
              }
             
              if (mysql_real_connect(con, "localhost", "krb_usr", "",
                      NULL, 0, NULL, 0) == NULL)
              {
                  fprintf(stderr, "%s\n", mysql_error(con));
                  mysql_close(con);
                  exit(1);
              }
             
              if (mysql_query(con, "CREATE DATABASE testdb_xyz"))
              {
                  fprintf(stderr, "%s\n", mysql_error(con));
                  mysql_close(con);
                  exit(1);
              }
             
              mysql_close(con);
              exit(0);
            }
            

            You will get an error:

            # ./mariadb_program 
            Plugin auth_gssapi_client could not be loaded: lib64/mariadb/plugin/auth_gssapi_client.so: cannot open shared object file: No such file or directory
            


            This makes the plugin completely unusable.
            Since gssapi is quite commonly used, I find it as a quite severe bug!

            IMHO same kind of issue as CONC-376

            mschorm Michal Schorm added a comment - I was able to reproduce the issue without touching aconadi. 1) Set up valid /etc/krb5.keytab 2) enable the gssapi plugin in the configuration file 3) start server 4) echo "CREATE USER 'krb_usr'@'localhost' IDENTIFIED VIA gssapi;" | mysql 5) Write a simple code and try to connect as that user: #include <stdio.h> #include <mysql.h>   int main( int argc, char **argv) { MYSQL *con = mysql_init(NULL);   if (con == NULL) { fprintf (stderr, "%s\n" , mysql_error(con)); exit (1); }   if (mysql_real_connect(con, "localhost" , "krb_usr" , "" , NULL, 0, NULL, 0) == NULL) { fprintf (stderr, "%s\n" , mysql_error(con)); mysql_close(con); exit (1); }   if (mysql_query(con, "CREATE DATABASE testdb_xyz" )) { fprintf (stderr, "%s\n" , mysql_error(con)); mysql_close(con); exit (1); }   mysql_close(con); exit (0); } You will get an error: # ./mariadb_program Plugin auth_gssapi_client could not be loaded: lib64 /mariadb/plugin/auth_gssapi_client .so: cannot open shared object file : No such file or directory This makes the plugin completely unusable. Since gssapi is quite commonly used, I find it as a quite severe bug! IMHO same kind of issue as CONC-376
            mschorm Michal Schorm made changes -
            Summary  Plugin auth_gssapi_client could not be loaded  Plugin auth_gssapi_client could not be loaded; missing "/usr/" prefix
            mschorm Michal Schorm added a comment -

            I believe this issue is rather important.
            The PR I opened fixes the bug for Fedora and should also for the others.

            Can you please take a look at it?

            mschorm Michal Schorm added a comment - I believe this issue is rather important. The PR I opened fixes the bug for Fedora and should also for the others. Can you please take a look at it?
            serg Sergei Golubchik made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            GeoffMontee Geoff Montee (Inactive) made changes -
            serg Sergei Golubchik made changes -
            serg Sergei Golubchik made changes -
            georg Georg Richter made changes -
            Fix Version/s 3.1.2 [ 23733 ]
            georg Georg Richter made changes -
            Fix Version/s 3.0.11 [ 23716 ]
            georg Georg Richter made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            julien.fritsch Julien Fritsch made changes -
            Workflow MariaDB connectors [ 91454 ] MariaDB v4 [ 161153 ]

            People

              georg Georg Richter
              mschorm Michal Schorm
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.