1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00
Files
mariadb/sql
Georgi Kodinov 777ad2dd98 Bug #57689: mysql_change_user() breaks user connection on older clients
COM_CHANGE_USER was always handled like an implicit request to change the
client plugin, so that the client can re-use the same code path for both normal 
login and COM_CHANGE_USER. However this doesn't really work well with old 
clients because they don't understand the request to change a client plugin.

Fixed by implementing a special state in the code (and old client issuing 
COM_CHANGE_USER). In this state the server parses the COM_CHANGE_USER 
package and pushes back the password hash, the user name and the database 
to the input stream in the same order that the native password server side plugin 
expects. As a result it replies with an OK/FAIL just like the old server does thus
making the new server compatible with older clients.

No test case added, since it would requre an old client binary. Tested using 
accounts with and without passwords. Tested with a correct and incorrect 
password.
2010-10-25 18:11:58 +03:00
..
2010-08-16 14:50:27 +02:00
2010-07-25 19:30:18 +02:00
2010-05-24 14:51:59 +02:00
2010-10-27 09:32:26 +02:00
2010-05-28 19:53:26 -03:00
2010-03-31 16:05:33 +02:00
2010-07-30 16:56:57 +03:00
2010-08-13 14:20:49 +03:00
2010-09-09 16:43:45 +04:00
2010-10-06 13:02:11 +03:00
2010-08-30 11:36:04 +04:00
2010-08-30 11:36:04 +04:00
2010-10-07 12:17:08 +04:00
2010-10-07 12:17:08 +04:00
2010-10-08 18:06:31 +04:00
2010-03-31 16:05:33 +02:00
2010-10-23 21:09:27 +08:00
2010-09-29 17:26:32 +03:00
2010-10-04 15:42:16 +03:00
2010-08-30 18:07:40 +04:00
2010-09-16 16:20:35 +04:00
2010-06-11 10:15:55 +02:00
2010-04-13 19:04:45 +04:00
2010-10-16 22:20:35 +08:00
2010-03-31 16:05:33 +02:00
2010-09-06 17:04:32 +02:00
2010-10-12 14:07:13 +04:00
2010-10-23 21:09:27 +08:00
2010-10-23 21:09:27 +08:00
2010-10-23 21:09:27 +08:00
2010-08-31 13:59:51 +04:00
2010-10-27 09:32:26 +02:00
2010-09-27 16:55:09 +04:00
2010-09-29 14:48:57 +03:00
2010-08-26 14:17:27 +04:00
2010-08-12 20:44:41 +04:00
2010-10-27 09:32:26 +02:00
2009-09-10 03:18:29 -06:00
2010-10-04 15:42:16 +03:00
2009-12-03 21:37:38 +03:00