mirror of
https://github.com/actiontech/dble.git
synced 2026-01-02 02:40:28 -06:00
fix: inner 648
when auth request is \004 need send switch auth response
This commit is contained in:
@@ -116,13 +116,8 @@ public class MySQLBackAuthService extends AuthService {
|
||||
case PasswordAuthPlugin.AUTH_SWITCH_MORE: {
|
||||
authSwitchMore = true;
|
||||
//need auth switch for other plugin
|
||||
AuthSwitchRequestPackage authSwitchRequestPackage = new AuthSwitchRequestPackage();
|
||||
authSwitchRequestPackage.read(data);
|
||||
if (authSwitchRequestPackage.getAuthPluginData() != null && authSwitchRequestPackage.getAuthPluginData().length > 0) {
|
||||
BinaryPacket binaryPacket = new BinaryPacket();
|
||||
binaryPacket.setData(new byte[]{2});
|
||||
binaryPacket.setPacketId(++data[3]);
|
||||
binaryPacket.bufferWrite(connection);
|
||||
if (data.length > 5 && data[5] == PasswordAuthPlugin.AUTHSTAGE_FULL) {
|
||||
sendSwitchResponse(new byte[]{2}, ++data[3]);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user