Issue Details (XML | Word | Printable)

Key: CORE-6203
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Alexander Peshkov
Reporter: Alexander Peshkov
Votes: 0
Watchers: 2

If you were logged in you would be able to see more operations.
Firebird Core

"Error reading data from the connection" is raised sometimes when using non-default authentication plugin

Created: 06/Dec/19 03:18 PM   Updated: 06/Dec/19 03:32 PM
Component/s: None
Affects Version/s: 3.0.4, 4.0 Beta 1
Fix Version/s: 3.0.5, 4.0 Beta 2

QA Status: No test

 Description  « Hide
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.

 All   Comments   Change History   Subversion Commits      Sort Order: Descending order - Click to sort in ascending order
Alexander Peshkov added a comment - 06/Dec/19 03:32 PM
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.