Bug #75425 | API mis-parses secure_auth parameter | ||
---|---|---|---|
Submitted: | 6 Jan 2015 15:25 | Modified: | 7 Jan 2015 14:05 |
Reporter: | Nic Sandfield (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: C API (client library) | Severity: | S2 (Serious) |
Version: | 5.6.22 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | API, secure_auth |
[6 Jan 2015 15:25]
Nic Sandfield
[6 Jan 2015 15:26]
Nic Sandfield
Patch with the one-line fix
Attachment: libmysql.patch (text/x-patch), 527 bytes.
[7 Jan 2015 6:48]
MySQL Verification Team
Hello Nic Sandfield, Thank you for the report and contribution. Could you please sign the OCA, so that we can consider taking your patch? Please see the following for more details: http://www.oracle.com/technetwork/community/oca-486395.html Thanks, Umesh
[7 Jan 2015 6:49]
MySQL Verification Team
// MySQL 5.6.24 client with --secure-auth=FALSE [ushastry@ushastry]/export/umesh/mysql-5.6.24: bin/mysql -u ushastry -p -S /tmp/mysql_ushastry.sock --secure-auth=FALSE Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 16 Server version: 4.0.30-classic Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> mysql> \s -------------- bin/mysql Ver 14.14 Distrib 5.6.24, for linux-glibc2.5 (x86_64) using EditLine wrapper .. Current user: ushastry@localhost SSL: Not in use Current pager: more Using outfile: '' Using delimiter: ; Server version: 4.0.30-classic // Perl [ushastry@ushastry]/export/umesh/mysql-5.6.24:perl -v This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi (with 25 registered patches, see perl -V for more detail) .. [ushastry@ushastry]/export/umesh/mysql-5.6.24: cat /tmp/75425.cnf [client] host = localhost port = 15000 user = ushastry password=123 secure_auth = FALSE socket=/tmp/mysql_ushastry.sock [ushastry@ushastry]/export/umesh/mysql-5.6.24: perl -MDBI -E'DBI->connect(q{DBI:mysql:test;mysql_read_default_file=/tmp/75425.cnf})' DBI connect('test;mysql_read_default_file=/tmp/75425.cnf','',...) failed: Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled) at -e line 1. // With skip_secure_auth [ushastry@ushastry]/export/umesh/mysql-5.6.24: cat /tmp/75425.cnf [client] host = localhost port = 15000 user = ushastry password=123 #secure_auth = FALSE skip_secure_auth socket=/tmp/mysql_ushastry.sock [ushastry@ushastry]/export/umesh/mysql-5.6.24: perl -MDBI -E'DBI->connect(q{DBI:mysql:test;mysql_read_default_file=/tmp/75425.cnf})' [ushastry@ushastry]/export/umesh/mysql-5.6.24:
[7 Jan 2015 14:05]
Nic Sandfield
Thanks Umesh, I have now submitted my OCA. -- Nic Sandfield