[MXS-2111] After SET PASSWORD done on the database, MaxScale not able to connect Created: 2018-10-25  Updated: 2020-08-25  Resolved: 2018-10-30

Status: Closed
Project: MariaDB MaxScale
Component/s: Authenticator
Affects Version/s: 2.2.15
Fix Version/s: 2.2.16

Type: Bug Priority: Major
Reporter: Faisal Saeed (Inactive) Assignee: markus makela
Resolution: Fixed Votes: 1
Labels: None
Environment:

RHEL 7.x MariaDB 10.3.x


Issue Links:
Problem/Incident
is caused by MDEV-16774 SET PASSWORD and ALTER USER with slig... Closed
Sprint: MXS-SPRINT-69

 Description   

MariaDB SET PASSWORD saves the password in mysql.user.authentication_string field and MaxScale is looking at mysql.user.password field for authentication.

MariaDB [(none)]> select user, password, authentication_string from mysql.user;
+------------+-------------------------------------------+-----------------------+
| user       | password                                  | authentication_string |
+------------+-------------------------------------------+-----------------------+
| root       |                                           |                       |
| root       |                                           |                       |
| root       |                                           |                       |
| root       |                                           |                       |
|            |                                           |                       |
|            |                                           |                       |
| migration  | *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 |                       |
| migration  | *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 |                       |
| migration  | *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 |                       |
| las        | *9677B3E0EA32E863BCE766756E363CF03A6C7E4C |                       |
| las        | *9677B3E0EA32E863BCE766756E363CF03A6C7E4C |                       |
| eclaimsadm | *9677B3E0EA32E863BCE766756E363CF03A6C7E4C |                       |
+------------+-------------------------------------------+-----------------------+
12 rows in set (0.000 sec)
 
MariaDB [(none)]> SET PASSWORD FOR las@'%' = PASSWORD('test');
Query OK, 0 rows affected (0.000 sec)
 
MariaDB [(none)]> select user, password, authentication_string from mysql.user;
+------------+-------------------------------------------+-------------------------------------------+
| user       | password                                  | authentication_string                     |
+------------+-------------------------------------------+-------------------------------------------+
| root       |                                           |                                           |
| root       |                                           |                                           |
| root       |                                           |                                           |
| root       |                                           |                                           |
|            |                                           |                                           |
|            |                                           |                                           |
| migration  | *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 |                                           |
| migration  | *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 |                                           |
| migration  | *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 |                                           |
| las        | *9677B3E0EA32E863BCE766756E363CF03A6C7E4C |                                           |
| las        |                                           | *94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29 |
| eclaimsadm | *9677B3E0EA32E863BCE766756E363CF03A6C7E4C |                                           |
+------------+-------------------------------------------+-------------------------------------------+
12 rows in set (0.000 sec)
 
MariaDB [(none)]>


Generated at Thu Feb 08 04:11:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.