Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-4094

Allow empty token when client is replying to AuthSwitchRequest

    XMLWordPrintable

Details

    • MXS-SPRINT-165

    Description

      Reproduce steps:
      1.Set mysql default auth plugin to caching_sha2_password.
      2.create user 'nopass'@'%' identified with mysql_native_password by '';
      3. login with -u nopass.

      Reason:
      The function send_mysql_native_password_response didn't handle user with empty password, it just add a 20-bytes scramble regardless of whether the password is null.

      Solve:
      After add some ugly code(see attachment), it worked for me.

      Attachments

        Activity

          People

            esa.korhonen Esa Korhonen
            bookding Kevin
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.