Skip to content

Permit multi-authentication#1303

Merged
bgrainger merged 1 commit intomysql-net:masterfrom
rusher:multiAuthentication
Apr 7, 2023
Merged

Permit multi-authentication#1303
bgrainger merged 1 commit intomysql-net:masterfrom
rusher:multiAuthentication

Conversation

@rusher
Copy link
Copy Markdown
Contributor

@rusher rusher commented Apr 6, 2023

Authentication switch request can result in 3 type of responses:

  • OK_Packet
  • ERR_Packet
  • another authentication switch request.

Actual implementation does not permit another authentication switch request.

This can be the case when using multiple authentication, like :

create user mysqltest1 identified via mysql_native_password as password("good") OR unix_socket;

Existing in:

Authentication switch request can result in 3 type of response:
* OK_Packet
* ERR_Packet
* another authentication switch request.

example with "create user mysqltest1 identified via mysql_native_password as password("good") OR unix_socket;" that might result with multiple authentication switch request.
since MariaDB 10.4.3 (https://mariadb.com/kb/en/create-user/#identified-viawith-authentication_plugin) and MySQL 8.0 (https://dev.mysql.com/doc/refman/8.0/en/create-user.html)

Signed-off-by: rusher <diego.dupin@gmail.com>
Copy link
Copy Markdown
Member

@bgrainger bgrainger left a comment

Choose a reason for hiding this comment

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

Thanks for the improvement!

@bgrainger bgrainger merged commit 7be4e2a into mysql-net:master Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants