Skip to content

Route unknown-user auth failures to ER_ACCESS_DENIED for clients#3451

Merged
elianddb merged 6 commits intomainfrom
elian/10565
Mar 4, 2026
Merged

Route unknown-user auth failures to ER_ACCESS_DENIED for clients#3451
elianddb merged 6 commits intomainfrom
elian/10565

Conversation

@elianddb
Copy link
Copy Markdown
Contributor

@elianddb elianddb commented Feb 26, 2026

Fix dolthub/dolt#10565

  • Fix malformed packet in mariadb 10.11 and 11.8 clients when using unknown user.

Authentication failures for unknown users follow the mysql_native_password negotiation path instead of a handshake-level method-selection failure.

@elianddb elianddb changed the title mysql_db: route unknown-user auth failures to ER_ACCESS_DENIED Route unknown-user auth failures to ER_ACCESS_DENIED Feb 26, 2026
@elianddb elianddb changed the title Route unknown-user auth failures to ER_ACCESS_DENIED Route unknown-user auth failures to ER_ACCESS_DENIED for clients Feb 26, 2026
elianddb added a commit to dolthub/dolt that referenced this pull request Feb 26, 2026
elianddb added a commit to dolthub/dolt that referenced this pull request Feb 26, 2026
elianddb added a commit to dolthub/dolt that referenced this pull request Feb 26, 2026
@elianddb elianddb requested a review from fulghum February 26, 2026 23:36
elianddb added a commit to dolthub/dolt that referenced this pull request Mar 2, 2026
elianddb added a commit to dolthub/dolt that referenced this pull request Mar 2, 2026
Copy link
Copy Markdown
Contributor

@fulghum fulghum left a comment

Choose a reason for hiding this comment

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

Definitely looking better! Good job simplifying the changes needed. I think you can go a little further with that.

elianddb added a commit to dolthub/dolt that referenced this pull request Mar 4, 2026
@elianddb elianddb force-pushed the elian/10565 branch 3 times, most recently from b83eec1 to 3437350 Compare March 4, 2026 20:58
elianddb added a commit to dolthub/dolt that referenced this pull request Mar 4, 2026
@elianddb elianddb requested a review from fulghum March 4, 2026 21:47
Copy link
Copy Markdown
Contributor

@fulghum fulghum left a comment

Choose a reason for hiding this comment

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

Looks good!

Comment on lines +463 to +464
// newUserValidator returns a [userValidator] bound to one auth method.
//
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These new comment lines don't seem necessary.

@elianddb elianddb merged commit 80791ce into main Mar 4, 2026
8 checks passed
elianddb added a commit to dolthub/dolt that referenced this pull request Mar 5, 2026
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.

mariadb 11.8 client cannot talk to dolt

2 participants