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

pam_user_map : not supporting username or groupname containing @ character

    XMLWordPrintable

Details

    Description

      Hello,

      Unfortunately, it appears that the "pam_user_map" module does not handle usernames or group names containing the "@" character correctly.

      I have tried escaping the character in multiple ways but without success.

      # cat /etc/security/user_map.conf
       
      #
      # Configuration file for pam_user_map.so
      #
      # defines mapping in the form
      #
      #       orig_user_name: mapped_user_name
      #
      # or (to map all users in a specific group)
      #
      #       @group_name: mapped_user_name
      #
      # comments and empty lines are ignored
      #
      username@company.tld: dbuser
      

      # tail /var/log/secure
       
      May 24 17:21:30 servername mysqld: pam_user_map(mariadb:auth): Opening file '/etc/security/user_map.conf'.
      May 24 17:21:30 servername mysqld: pam_user_map(mariadb:auth): Incoming username 'username@company.tld'.
      May 24 17:21:30 servername mysqld: pam_user_map(mariadb:auth): Syntax error at /etc/security/user_map.conf:14
      

      Attachments

        Activity

          People

            danblack Daniel Black
            naska naska
            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.