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

disable mysql_old_password by default

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • None
    • 3.4.0
    • Authentication
    • None

    Description

      mysql_old_password should be by default disabled, as if all other plugins were in the the restricted-auth list. Something like

      --- a/plugins/auth/my_auth.c
      +++ b/plugins/auth/my_auth.c
      @@ -658,11 +658,11 @@ int run_plugin_auth(MYSQL *mysql, char *data, uint data_len,
       retry:
         mpvio.plugin= auth_plugin;
       
      -  if (auth_plugin_name &&
      -     mysql->options.extension &&
      -     mysql->options.extension->restricted_auth)
      +  if (auth_plugin_name)
         {
      -    if (!strstr(mysql->options.extension->restricted_auth, auth_plugin_name))
      +    if ((mysql->options.extension && mysql->options.extension->restricted_auth)
      +        ? !strstr(mysql->options.extension->restricted_auth, auth_plugin_name)
      +        : !strcmp("mysql_old_password", auth_plugin_name))
           {
             my_set_error(mysql, CR_PLUGIN_NOT_ALLOWED, SQLSTATE_UNKNOWN, 0, data_plugin);
             return 1;
      

      Attachments

        Issue Links

          Activity

            People

              georg Georg Richter
              serg Sergei Golubchik
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.