does auth_pam plugin have something like user_map (like MariaDB has)?
---8<------
And create /etc/security/user_map.conf with the desired mapping
in the format: orig_user_name: mapped_user_name
---8<------
So i can map my users to some MySQL user (similar as i want to achieve)
Also, this is probably auth_pam plugin limitation, or?
---8<---
mysql> GRANT SELECT ON test.* TO 'very_long_username'@'%' IDENTIFIED WITH auth_pam AS 'mysql';
ERROR 1470 (HY000): String 'very_long_username' is too long for user name (should be no longer than 16)
---8<---
On Linux, it works:
---8<---
$ useradd very_long_username
$ echo very_long_username | wc -c
19
HI Sergei,
does auth_pam plugin have something like user_map (like MariaDB has)?
---8<------ user_map. conf with the desired mapping
And create /etc/security/
in the format: orig_user_name: mapped_user_name
---8<------
So i can map my users to some MySQL user (similar as i want to achieve)
Also, this is probably auth_pam plugin limitation, or?
---8<--- username' @'%' IDENTIFIED WITH auth_pam AS 'mysql'; username' is too long for user name (should be no longer than 16)
mysql> GRANT SELECT ON test.* TO 'very_long_
ERROR 1470 (HY000): String 'very_long_
---8<---
On Linux, it works:
---8<---
$ useradd very_long_username
$ echo very_long_username | wc -c
19
$ getent passwd very_long_username username: !!:10102: 10102:: /home/very_ long_username: /bin/bash
very_long_
---8<---
Thanks and best regards.
P.S: If i open Feature request, how long it might take until it is implemented?