Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-34525

Server authentication prints incorrect error message when a user created with the PAM plugin logs into the server with an incorrect password.

    XMLWordPrintable

Details

    Description

      Server authentication shows password missing error (using password: NO) when we trying to login to the server with a wrong password for a user created with PAM plugin.
      Actual error

      vagrant@node1:~$ mariadb -ujoe -ptest -e"show grants"
      +-------------------------------------------------------------------------+
      | Grants for joe@localhost                                           
      |
      +-------------------------------------------------------------------------+
      | GRANT USAGE ON *.* TO `joe`@`localhost` IDENTIFIED VIA pam USING 'test' |
      +-------------------------------------------------------------------------+
      vagrant@node1:~$ mariadb -ujoe -ptest1 -e"select user()"
      ERROR 1045 (28000): Access denied for user 'joe'@'localhost' (using password: NO)
      vagrant@node1:~$
      

      Expected error

      vagrant@node1:~$ mariadb -ujoe -ptest1 -e"select user()"
      ERROR 1045 (28000): Access denied for user 'joe'@'localhost' (using password: YES)
      

      Attachments

        Activity

          People

            serg Sergei Golubchik
            ramesh Ramesh Sivaraman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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