Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.4(EOL), 10.5
-
None
Description
MariaDB [(none)]> show create user;
|
+---------------------------------------------------------------------------------------------------+
|
| CREATE USER for dan@localhost |
|
+---------------------------------------------------------------------------------------------------+
|
| CREATE USER `dan`@`localhost` IDENTIFIED VIA mysql_native_password USING 'invalid' OR unix_socket |
|
+---------------------------------------------------------------------------------------------------+
|
1 row in set (0.000 sec)
|
|
MariaDB [(none)]> CREATE USER `dan2`@`localhost` IDENTIFIED VIA mysql_native_password USING 'invalid' OR unix_socket
|
-> ;
|
ERROR 1372 (HY000): Password hash should be a 41-digit hexadecimal number
|
Is "invalid" something that should be literally accepted for compatibility?
To not do so means programs and humans that use SHOW CREATE USER output needs to parse out this text and remove it.
Attachments
Issue Links
- relates to
-
MDEV-24207 recognise mysql forms of invalid password for mysql_native_password
-
- Closed
-
- links to
Given the "invalid" is a part of the password field instead of a user hash, I saw the easiest way just to accept that one literal.
per https://github.com/MariaDB/server/pull/1628
Alternate suggestions welcome