MXS-1826: Respond with AuthSwitchRequest to COM_CHANGE_USER
To support a wider range of client connectors, MaxScale should respond with an AuthSwitchRequest packet to all COM_CHANGE_USER commands. Only MariaDB connectors understand the OK packet as the only response to a COM_CHANGE_USER but all connectors understand the AuthSwitchRequest packet.
This commit is contained in:
@ -513,6 +513,9 @@ mxs_auth_state_t gw_send_backend_auth(DCB *dcb);
|
||||
/** Sends a response for an AuthSwitchRequest to the default auth plugin */
|
||||
int send_mysql_native_password_response(DCB* dcb);
|
||||
|
||||
/** Sends an AuthSwitchRequest packet with the default auth plugin to the DCB */
|
||||
bool send_auth_switch_request_packet(DCB* dcb);
|
||||
|
||||
/** Write an OK packet to a DCB */
|
||||
int mxs_mysql_send_ok(DCB *dcb, int sequence, uint8_t affected_rows, const char* message);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user