Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-391

Pure-Python connector sends an empty user name when user is not set

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-rc3
    • Generic
    • None

    Description

      In 2.0, with the pure-Python implementation, mariadb.connect() without a user argument sends an empty user name in the handshake, so the server rejects the connection:

      mariadb.OperationalError: Access denied for user ''@'127.0.0.1' (using password: NO) (errno: 1045, sqlstate: 28000)

      The C extension falls back to the OS login name instead, so the same call authenticates as the current user and works with unix_socket authentication.

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            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.