Comment 8 for bug 1091566

Revision history for this message
Predrag Zecevic (predrag-zecevic) wrote :

HI Sergei,

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

$ getent passwd very_long_username
very_long_username:!!:10102:10102::/home/very_long_username:/bin/bash
---8<---

Thanks and best regards.

P.S: If i open Feature request, how long it might take until it is implemented?