Skip to content
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

MYSQL_SECURE_AUTH has been removed in MySQL 8.0.3 RC #892

Merged
merged 3 commits into from
Nov 11, 2017
Merged

MYSQL_SECURE_AUTH has been removed in MySQL 8.0.3 RC #892

merged 3 commits into from
Nov 11, 2017

Conversation

yahonda
Copy link
Contributor

@yahonda yahonda commented Sep 22, 2017

https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-3.html#mysqld-8-0-3-capi

The deprecated secure_auth system variable and --secure-auth client option have been removed.
The MYSQL_SECURE_AUTH option for the mysql_options() C API function was removed.

This pull request addresses #891

https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-3.html#mysqld-8-0-3-capi
> The deprecated secure_auth system variable and --secure-auth client option have been removed.
> The MYSQL_SECURE_AUTH option for the mysql_options() C API function was removed.
@yahonda
Copy link
Contributor Author

yahonda commented Sep 23, 2017

There are 3 failures reported with this pull request.

One of them is explained in #893
Other two with MariaDB 10.0 and 10.1 also reproduce with the current master branch, I have not found the reason why MariaDB 10.0 and 10.1 are failing.

rb_define_private_method(cMysql2Client, "secure_auth=", set_secure_auth, 1);
#endif
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency with several other cases, let's allow this to fail silently by leaving the method in place, but turning it into a no-op.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed ifdef here. set_secure_auth method already handles if MYSQL_SECURE_AUTH is defined or not, here we do not need to handle it again. please give additional comment If I do not understand your review comment correctly.

@@ -1311,9 +1313,11 @@ static VALUE set_ssl_options(VALUE self, VALUE key, VALUE cert, VALUE ca, VALUE
return self;
}

#if defined(MYSQL_SECURE_AUTH)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this method a no-op by putting the #ifdef inside the method definition. Please add a comment, something like:

/* This option was deprecated in MySQL 5.x and removed in MySQL 8.0 */

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review. Changed ifdef location inside the method.

and add comments when this option was removed
@sodabrew sodabrew merged commit ac34e68 into brianmario:master Nov 11, 2017
@sodabrew sodabrew added this to the 0.4.9 milestone Nov 11, 2017
@sodabrew sodabrew removed this from the 0.4.9 milestone Nov 12, 2017
@sodabrew sodabrew added this to the 0.4.10 milestone Nov 12, 2017
svevang added a commit to PRX/cms.prx.org that referenced this pull request Aug 2, 2018
VitaliyAdamkov added a commit to VitaliyAdamkov/mysql2 that referenced this pull request Jun 12, 2021
https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-3.html#mysqld-8-0-3-capi

    The deprecated secure_auth system variable and --secure-auth client option have been removed.
    The MYSQL_SECURE_AUTH option for the mysql_options() C API function was removed.

This pull request addresses brianmario#891
nevyn pushed a commit to nevyn/mysql2 that referenced this pull request Jul 6, 2021
kratob pushed a commit to makandra/mysql2 that referenced this pull request Dec 23, 2022
https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-3.html#mysqld-8-0-3-capi
> The deprecated secure_auth system variable and --secure-auth client option have been removed.
> The MYSQL_SECURE_AUTH option for the mysql_options() C API function was removed.
lewispb added a commit to basecamp/mysql2 that referenced this pull request Mar 31, 2023
…lient-support

* makandra/0.3.x-lts:
  Use a typedef my_bool to improve compatibility across MySQL versions
  MYSQL_SECURE_AUTH has been removed in MySQL 8.0.3 RC (brianmario#892)
  Only do version check in Windows environment
  Fix for MariaDB 10.2 which does not define CLIENT_LONG_PASSWORD
kratob pushed a commit to makandra/mysql2 that referenced this pull request Apr 25, 2023
https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-3.html#mysqld-8-0-3-capi
> The deprecated secure_auth system variable and --secure-auth client option have been removed.
> The MYSQL_SECURE_AUTH option for the mysql_options() C API function was removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants