unknown
d899c7ff5e
Bug#16297 In memory grant tables not flushed when users's hostname is ""
...
- In function 'handle_grant_struct' when searching the memory structures for an
entry to modify, convert all entries here host.hostname is NULL to "" and compare that
with the host passed in argument "user_from".
- A user created with hostname "" is stored in "mysql.user" table as host="" but when loaded into
memory it'll be stored as host.hostname NULL. Specifiying "" as hostname means
that "any host" can connect. Thus is's correct to turn on allow_all_hosts
when such a user is found.
- Review and fix other places where host.hostname may be NULL.
mysql-test/init_db.sql:
Rename: BitKeeper/deleted/.del-init_db.sql~af2dfeabaa348dd7 -> mysql-test/init_db.sql
mysql-test/r/grant.result:
Add test cases for users with hostname ""
mysql-test/t/grant.test:
Add test cases for users with hostname ""
- Test create, grant and drop as well as connecting as the user with hostname "".
sql/sql_acl.cc:
Convert places where host.hostname is NULL to "" before using it.
2006-05-23 11:35:14 +02:00
..
2005-11-26 08:54:13 +01:00
2005-12-20 12:42:35 -06:00
2005-09-30 14:03:55 +02:00
2005-09-21 14:32:19 +05:00
2006-01-06 01:08:48 +02:00
2005-12-07 17:01:17 +03:00
2005-10-14 00:04:52 +03:00
2005-05-19 18:56:01 +05:00
2005-06-13 12:41:15 +02:00
2005-12-24 14:32:50 +01:00
2005-10-24 23:20:39 -07:00
2005-11-20 20:47:07 +02:00
2005-11-03 22:42:25 +02:00
2005-10-02 20:13:18 -07:00
2005-08-26 15:56:52 +03:00
2006-01-06 00:47:49 +02:00
2005-11-17 06:05:09 -08:00
2005-10-02 20:13:18 -07:00
2005-08-05 13:19:48 -07:00
2005-12-26 11:18:01 +04:00
2005-12-06 22:02:40 +03:00
2005-10-27 23:43:20 +03:00
2005-07-19 22:21:12 +04:00
2005-11-20 20:47:07 +02:00
2005-07-19 22:21:12 +04:00
2006-01-06 08:34:55 -08:00
2005-10-03 21:09:01 -07:00
2006-01-06 08:34:55 -08:00
2005-11-26 08:54:13 +01:00
2005-06-05 19:38:52 +02:00
2005-05-27 14:15:08 +02:00
2005-09-02 17:07:05 -07:00
2005-08-12 13:54:42 +03:00
2005-07-25 12:57:23 -07:00
2005-12-02 20:42:36 -08:00
2005-12-09 23:01:52 +03:00
2005-09-14 20:25:00 +04:00
2005-08-25 17:34:34 +04:00
2005-12-10 23:31:03 -08:00
2005-12-07 17:01:17 +03:00
2005-10-31 11:54:36 +02:00
2005-05-09 11:26:48 +02:00
2005-10-15 14:32:37 -07:00
2005-07-01 07:05:42 +03:00
2005-12-02 20:42:36 -08:00
2005-12-07 15:45:31 +01:00
2005-11-22 23:00:57 -08:00
2005-10-13 11:53:00 +04:00
2005-12-02 20:42:36 -08:00
2005-12-11 22:21:19 -08:00
2005-11-21 21:15:48 +02:00
2005-11-10 15:13:12 +01:00
2005-06-07 00:31:53 +03:00
2005-11-20 20:47:07 +02:00
2006-01-06 01:08:48 +02:00
2006-01-06 01:08:48 +02:00
2005-11-20 20:47:07 +02:00
2005-11-17 11:11:48 +01:00
2006-01-04 17:49:45 +03:00
2006-01-06 00:47:49 +02:00
2005-10-27 15:15:01 +03:00
2005-11-21 21:15:48 +02:00
2005-11-04 02:17:11 +01:00
2005-10-15 21:57:32 +05:00
2005-10-15 21:57:32 +05:00
2005-12-27 10:31:00 +01:00
2006-01-06 01:08:48 +02:00
2005-09-12 17:00:50 -07:00
2006-01-06 01:08:48 +02:00
2005-10-19 01:52:06 +04:00
2006-01-06 22:28:26 -08:00
2006-01-06 00:47:49 +02:00
2005-11-20 20:47:07 +02:00
2005-10-12 00:58:22 +03:00
2005-06-07 00:31:53 +03:00
2005-05-09 11:26:48 +02:00
2005-11-23 00:58:13 +02:00
2005-11-23 00:50:37 +02:00
2005-10-27 23:43:20 +03:00
2005-11-20 20:47:07 +02:00
2005-10-08 16:39:55 +02:00
2005-11-23 01:28:32 +02:00
2005-11-10 17:50:51 +01:00
2005-11-23 21:18:10 +03:00
2005-10-12 21:58:02 +02:00
2005-10-06 17:37:24 -07:00
2005-08-10 21:17:02 +00:00
2006-01-06 14:30:25 +01:00
2006-01-06 01:08:48 +02:00
2005-12-07 17:01:17 +03:00
2005-12-07 17:01:17 +03:00
2005-12-07 17:01:17 +03:00
2005-12-07 17:01:17 +03:00
2006-01-06 01:08:48 +02:00
2005-12-07 12:47:25 +03:00
2005-11-21 21:15:48 +02:00
2005-11-04 16:17:43 +03:00
2006-05-23 11:35:14 +02:00
2005-11-30 21:27:11 +02:00
2005-11-20 20:47:07 +02:00
2005-05-26 21:01:55 +02:00
2005-08-25 17:34:34 +04:00
2006-01-06 01:08:48 +02:00
2005-07-19 14:13:56 +02:00
2006-01-04 17:49:45 +03:00
2005-11-23 00:50:37 +02:00
2005-12-18 15:26:37 +01:00
2005-12-14 13:51:11 +01:00
2005-06-05 19:38:52 +02:00
2005-05-26 12:09:14 +02:00
2005-11-19 19:00:02 +03:00
2005-09-22 02:11:21 +04:00
2005-12-11 17:06:36 +03:00
2005-12-27 10:31:00 +01:00
2005-10-28 00:18:23 +03:00
2005-07-01 07:05:42 +03:00
2005-10-17 15:07:47 +02:00
2006-01-06 12:48:14 +02:00
2005-10-21 04:01:52 +03:00
2006-01-06 01:08:48 +02:00
2005-12-10 23:31:03 -08:00
2005-12-10 23:31:03 -08:00
2005-06-05 19:38:52 +02:00
2005-11-28 21:57:50 +02:00
2005-12-20 16:35:05 +01:00
2005-10-12 00:59:52 +03:00
2005-06-22 14:08:28 +05:00
2005-05-26 12:09:14 +02:00
2005-08-12 17:57:19 +03:00
2006-01-06 01:08:48 +02:00
2005-11-22 23:00:57 -08:00
2005-11-03 16:10:11 +02:00
2005-11-14 16:01:10 +03:00
2006-01-09 21:44:42 -08:00
2005-12-07 17:01:17 +03:00
2006-01-03 14:25:19 +04:00
2005-11-20 20:47:07 +02:00
2005-12-14 01:21:56 +02:00
2005-12-05 12:08:30 +01:00
2005-09-14 13:37:16 +02:00
2006-01-06 12:48:14 +02:00
2005-12-07 12:47:25 +03:00
2005-11-23 21:18:10 +03:00
2005-07-01 07:05:42 +03:00
2005-10-13 11:53:00 +04:00
2005-12-27 10:36:19 +01:00
2005-12-02 21:20:25 +02:00
2005-11-03 16:43:05 +02:00
2005-12-10 23:31:03 -08:00
2005-11-20 20:47:07 +02:00
2005-12-09 19:55:59 +04:00
2005-11-30 21:27:11 +02:00
2005-07-31 12:49:55 +03:00
2005-12-13 18:44:20 +02:00
2005-07-31 12:49:55 +03:00
2005-06-01 16:35:09 +03:00
2005-11-03 14:20:13 +03:00
2005-12-06 08:19:23 +01:00