2003-03-11 10:41:53 +01:00
drop table if exists t1;
create table t1(f1 int);
insert into t1 values (5);
grant select on test.* to ssl_user1@localhost require SSL;
2004-12-01 02:35:02 +01:00
grant select on test.* to ssl_user2@localhost require cipher "DHE-RSA-AES256-SHA";
2007-02-06 16:28:36 +01:00
grant select on test.* to ssl_user3@localhost require cipher "DHE-RSA-AES256-SHA" AND SUBJECT "/C=SE/ST=Uppsala/L=Uppsala/O=MySQL AB/emailAddress=abstract.mysql.developer@mysql.com";
grant select on test.* to ssl_user4@localhost require cipher "DHE-RSA-AES256-SHA" AND SUBJECT "/C=SE/ST=Uppsala/L=Uppsala/O=MySQL AB/emailAddress=abstract.mysql.developer@mysql.com" ISSUER "/C=SE/ST=Uppsala/L=Uppsala/O=MySQL AB";
2006-08-22 14:29:48 +02:00
grant select on test.* to ssl_user5@localhost require cipher "DHE-RSA-AES256-SHA" AND SUBJECT "xxx";
2003-03-11 10:41:53 +01:00
flush privileges;
2006-08-22 14:29:48 +02:00
connect(localhost,ssl_user5,,test,MASTER_PORT,MASTER_SOCKET);
ERROR 28000: Access denied for user 'ssl_user5'@'localhost' (using password: NO)
2005-10-04 15:43:55 +02:00
SHOW STATUS LIKE 'Ssl_cipher';
Variable_name Value
Ssl_cipher DHE-RSA-AES256-SHA
2003-03-11 10:41:53 +01:00
select * from t1;
f1
5
delete from t1;
2005-03-31 21:03:26 +02:00
ERROR 42000: DELETE command denied to user 'ssl_user1'@'localhost' for table 't1'
2005-10-04 15:43:55 +02:00
SHOW STATUS LIKE 'Ssl_cipher';
Variable_name Value
Ssl_cipher DHE-RSA-AES256-SHA
2003-03-11 10:41:53 +01:00
select * from t1;
f1
5
delete from t1;
2005-03-31 21:03:26 +02:00
ERROR 42000: DELETE command denied to user 'ssl_user2'@'localhost' for table 't1'
2005-10-04 15:43:55 +02:00
SHOW STATUS LIKE 'Ssl_cipher';
Variable_name Value
Ssl_cipher DHE-RSA-AES256-SHA
2003-03-11 10:41:53 +01:00
select * from t1;
f1
5
delete from t1;
2005-03-31 21:03:26 +02:00
ERROR 42000: DELETE command denied to user 'ssl_user3'@'localhost' for table 't1'
2005-10-04 15:43:55 +02:00
SHOW STATUS LIKE 'Ssl_cipher';
Variable_name Value
Ssl_cipher DHE-RSA-AES256-SHA
2003-03-11 10:41:53 +01:00
select * from t1;
f1
5
delete from t1;
2005-03-31 21:03:26 +02:00
ERROR 42000: DELETE command denied to user 'ssl_user4'@'localhost' for table 't1'
2006-04-18 18:10:47 +02:00
drop user ssl_user1@localhost, ssl_user2@localhost,
2006-08-22 14:29:48 +02:00
ssl_user3@localhost, ssl_user4@localhost, ssl_user5@localhost;
2003-03-11 10:41:53 +01:00
drop table t1;
2006-05-03 14:06:34 +02:00
mysqltest: Could not open connection 'default': 2026 SSL connection error
mysqltest: Could not open connection 'default': 2026 SSL connection error
mysqltest: Could not open connection 'default': 2026 SSL connection error
2006-11-07 17:42:15 +01:00
SSL error: Unable to get private key from ''
2006-05-03 14:06:34 +02:00
mysqltest: Could not open connection 'default': 2026 SSL connection error
2006-11-07 17:42:15 +01:00
SSL error: Unable to get certificate from ''
2006-05-03 14:06:34 +02:00
mysqltest: Could not open connection 'default': 2026 SSL connection error