-
Notifications
You must be signed in to change notification settings - Fork 4k
/
Copy pathconnection_auth_sequence_timeout.result
57 lines (52 loc) · 1.58 KB
/
connection_auth_sequence_timeout.result
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# restart
call mtr.add_suppression("Maximum number of authentication attempts reached");
CREATE USER xuser_cache2@'localhost'
IDENTIFIED WITH 'caching_sha2_password' BY 'cache2';
SET GLOBAL mysqlx_connect_timeout = 15;
#######################################################################
## 3. Authentication fails, and client is idle
##
## * Establish a connection, try to login with invalid data, do nothing
## (waiting for disconnection)
## * Establish a connection, enable ssl, try to login with invalid data,
## do nothing (waiting for disconnection)
##
#
#######################################################################
## New connection & SSL, user is waiting for disconnection after the auth
## failure
connecting...
active session is now 'seq'
send Mysqlx.Connection.CapabilitiesSet {
capabilities {
capabilities {
name: "tls"
value {
type: SCALAR
scalar {
type: V_BOOL
v_bool: true
}
}
}
}
}
Mysqlx.Ok {
}
Got expected error: Access denied for user 'xuser_native'@'localhost' (using password: YES) (code 1045)
closing session seq
switched to session default
#######################################################################
## New connection, user is waiting for disconnection after the auth
## failure
connecting...
active session is now 'seq'
Got expected error: Access denied for user 'xuser_native'@'localhost' (using password: YES) (code 1045)
closing session seq
switched to session default
Mysqlx.Ok {
msg: "bye!"
}
ok
DROP USER xuser_cache2@'localhost';
SET GLOBAL mysqlx_connect_timeout = DEFAULT;