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

"Error reading data from the connection" is raised sometimes when using non-default authentication plugin [CORE6203] #6448

Closed
firebird-issue-importer opened this issue Dec 6, 2019 · 3 comments

Comments

@firebird-issue-importer
Copy link

firebird-issue-importer commented Dec 6, 2019

Submitted by: @AlexPeshkoff

When using both SRP and non-default additional trusted authentication plugin an error is raised when providing illegal password for SRP:

Execute statement error at attach :335544726 : Error reading data from the connection.
Data source : Firebird::localhost:c:\some\db.fdb.
At block line: 3, col: 4.

Commits: 176ab0e 8086e06

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Dec 6, 2019

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Dec 6, 2019

Commented by: @AlexPeshkoff

SRP client after successful second phase of handshake places adds wire crypt key to the list of known keys. That happens even in a case when SRP server later rejects authentication due to invalid password. If next plugin later adds wire crypt key of same type client has no way to distinguish between 2 keys and select first one.

Currently that's fixed by using correct direction (down, not up) of keys' scanning at client side.

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Dec 6, 2019

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0.5 [ 10885 ]

Fix Version: 4.0 Beta 2 [ 10888 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants