From e381ab85861cd35f39128b12d741dd48972e84f8 Mon Sep 17 00:00:00 2001 From: Daniel Speichert Date: Thu, 14 May 2015 18:48:26 -0400 Subject: [PATCH] Add clientPluginAuth (CLIENT_PLUGIN_AUTH) for authentication handshake This flag is necessary for successful login via auth_socket.so plugin (https://dev.mysql.com/doc/mysql-security-excerpt/5.5/en/socket-authentication-plugin.html) --- packets.go | 1 + 1 file changed, 1 insertion(+) diff --git a/packets.go b/packets.go index 290a3887a..02ac16067 100644 --- a/packets.go +++ b/packets.go @@ -214,6 +214,7 @@ func (mc *mysqlConn) writeAuthPacket(cipher []byte) error { clientLongPassword | clientTransactions | clientLocalFiles | + clientPluginAuth | mc.flags&clientLongFlag if mc.cfg.clientFoundRows {