Skip to content

request to turn on plugin_auth #2425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
format and var
  • Loading branch information
GuuBu committed Nov 11, 2020
commit e7971b007ff80c87b44c97305377594efe44ce99
4 changes: 2 additions & 2 deletions lib/protocol/packets/ClientAuthenticationPacket.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function ClientAuthenticationPacket(options) {
var defaultFlags = ConnectionConfig.getDefaultFlags();
var mergedFlags = ConnectionConfig.mergeFlags(defaultFlags, this.clientFlags);
if(mergedFlags & Client.CLIENT_PLUGIN_AUTH != 0) {
this.clientAuthPlugin = true;
this.authPluginName = "mysql_native_pasword";
this.clientAuthPlugin = true;
this.authPluginName = "mysql_native_pasword";
}
}

Expand Down
4 changes: 2 additions & 2 deletions lib/protocol/packets/ComChangeUserPacket.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ ComChangeUserPacket.prototype.write = function(writer) {
writer.writeLengthCodedBuffer(this.scrambleBuff);
writer.writeNullTerminatedString(this.database);
writer.writeUnsignedNumber(2, this.charsetNumber);
let defaultFlags = ConnectionConfig.getDefaultFlags();
let mergedFlags = ConnectionConfig.mergeFlags(defaultFlags);
var defaultFlags = ConnectionConfig.getDefaultFlags();
var mergedFlags = ConnectionConfig.mergeFlags(defaultFlags);
if(mergedFlags & Client.CLIENT_PLUGIN_AUTH != 0) {
writer.writeNullTerminatedString("mysql_native_password");
}
Expand Down