Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
10.3.35
-
OS : RHEL 8.7
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
|