2016-01-27 15:23:42 +01:00
|
|
|
--source include/windows.inc
|
|
|
|
|
2021-05-07 21:42:42 +02:00
|
|
|
if (!$AUTH_NAMED_PIPE_SO)
|
|
|
|
{
|
|
|
|
skip No auth_named_pipe plugin;
|
|
|
|
}
|
|
|
|
|
2016-01-27 15:23:42 +01:00
|
|
|
INSTALL SONAME 'auth_named_pipe';
|
|
|
|
|
|
|
|
--replace_result $USERNAME USERNAME
|
2016-02-01 17:51:57 +01:00
|
|
|
eval CREATE USER '$USERNAME' IDENTIFIED WITH named_pipe;
|
2016-01-27 15:23:42 +01:00
|
|
|
# Connect using named pipe, correct username
|
|
|
|
connect(pipe_con,localhost,$USERNAME,,,,,PIPE);
|
|
|
|
--replace_result $USERNAME USERNAME
|
|
|
|
SELECT USER(),CURRENT_USER();
|
|
|
|
disconnect pipe_con;
|
|
|
|
connection default;
|
|
|
|
--replace_result $USERNAME USERNAME
|
2016-02-01 17:51:57 +01:00
|
|
|
eval DROP USER '$USERNAME';
|
2016-01-27 15:23:42 +01:00
|
|
|
|
|
|
|
# test invalid user name
|
|
|
|
CREATE USER nosuchuser IDENTIFIED WITH named_pipe;
|
|
|
|
--disable_query_log
|
|
|
|
--error ER_ACCESS_DENIED_NO_PASSWORD_ERROR
|
|
|
|
connect(pipe_con,localhost,nosuchuser,,,,,PIPE);
|
|
|
|
--enable_query_log
|
|
|
|
DROP USER nosuchuser;
|
|
|
|
UNINSTALL SONAME 'auth_named_pipe';
|