From: Georgi Kodinov Date: July 5 2012 2:30pm Subject: bzr push into mysql-5.6 branch (Georgi.Kodinov:3980 to 3981) Bug#13789417 List-Archive: http://lists.mysql.com/commits/144379 X-Bug: 13789417 Message-Id: <20120705143014.81303.95720.3981@dhcp-uk-twvpn-1-vpnpool-10-175-16-47.vpn.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 3981 Georgi Kodinov 2012-07-05 Bug #13789417: CHANGE SECURE_AUTH DEFAULT FROM FALSE TO TRUE IN MYSQL CLIENTS 1. The default for the MYSQL_SECURE_AUTH mysql_options() option is now TRUE. 2. The default for --secure-auth in mysql, the command line client, is now ON/TRUE. modified: client/mysql.cc sql-common/client.c 3980 Georgi Kodinov 2012-07-05 [merge] merge modified: storage/innobase/dict/dict0dict.cc storage/innobase/dict/dict0stats.cc === modified file 'client/mysql.cc' --- a/client/mysql.cc 2012-07-05 07:18:42 +0000 +++ b/client/mysql.cc 2012-07-05 13:29:41 +0000 @@ -144,7 +144,7 @@ static my_bool ignore_errors=0,wait_flag vertical=0, line_numbers=1, column_names=1,opt_html=0, opt_xml=0,opt_nopager=1, opt_outfile=0, named_cmds= 0, tty_password= 0, opt_nobeep=0, opt_reconnect=1, - opt_secure_auth= 0, + opt_secure_auth= TRUE, default_pager_set= 0, opt_sigint_ignore= 0, auto_vertical_output= 0, show_warnings= 0, executing_query= 0, interrupted_query= 0, @@ -1695,7 +1695,7 @@ static struct my_option my_long_options[ 1, ULONG_MAX, 0, 1, 0}, {"secure-auth", OPT_SECURE_AUTH, "Refuse client connecting to server if it" " uses old (pre-4.1.1) protocol.", &opt_secure_auth, - &opt_secure_auth, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, + &opt_secure_auth, 0, GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0}, {"server-arg", OPT_SERVER_ARG, "Send embedded server this as a parameter.", 0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, {"show-warnings", OPT_SHOW_WARNINGS, "Show warnings after every statement.", @@ -4466,7 +4466,7 @@ sql_real_connect(char *host,char *databa mysql_options(&mysql, MYSQL_OPT_BIND, opt_bind_addr); if (opt_compress) mysql_options(&mysql,MYSQL_OPT_COMPRESS,NullS); - if (opt_secure_auth) + if (!opt_secure_auth) mysql_options(&mysql, MYSQL_SECURE_AUTH, (char *) &opt_secure_auth); if (using_opt_local_infile) mysql_options(&mysql,MYSQL_OPT_LOCAL_INFILE, (char*) &opt_local_infile); === modified file 'sql-common/client.c' --- a/sql-common/client.c 2012-07-05 08:37:01 +0000 +++ b/sql-common/client.c 2012-07-05 13:29:41 +0000 @@ -1686,6 +1686,8 @@ mysql_init(MYSQL *mysql) (mysql.reconnect=0) will not see a behaviour change. */ mysql->reconnect= 0; + + mysql->options.secure_auth= TRUE; return mysql; } No bundle (reason: useless for push emails).