On 19-08-2022 16:47, Hugo Eyng | Datamais wrote:
> firebird.conf
>
[..]
> AuthServer = Legacy_Auth, Srp256, Srp
[..]
> UserManager = Legacy_UserManager, Srp
[..]
>
> In DBEaver using JDBC 4.0.0 and does not work.
DBeaver uses Jaybird, and Jaybird since 4.0.0 doesn't use Legacy_Auth by
default[1] when connecting to Firebird 3.0 and higher, only Srp256 and
Srp. Given you have Srp256 and Srp in AuthServer, Jaybird will try to
authenticate using those plugins.
Since you seem to have never created a user using the Srp user manager
(as there are no Srp users in the screenshot in the reply to Alex),
Firebird will report the "install incomplete" error.
To be able to connect with Legacy_Auth from DBeaver, add connection
property authPlugins with value Legacy_Auth to the connection properties
in DBeaver (tab Driver properties).
Alternatively, switch to using Srp, create your users with Srp, and drop
the Legacy_Auth users.
To initialize Srp, you need to create a user:
CREATE USER someuser PASSWORD 'somepassword' USING PLUGIN Srp;
(and optionally drop the user again if you only want to initialize Srp,
the error will then change to the normal "Your user name and password
are not defined" error.)
As an aside, your configuration is insecure. Legacy_Auth should be last
in both AuthServer and AuthClient, as your current order leaks the hash
of the first 8 characters of a password even if the user is a Srp user,
and that hash is trivial to crack with rainbow tables. If you switch to
Srp, I recommend switching the order in UserManager to Srp,
Legacy_UserManager as well, so by default CREATE USER creates the more
secure Srp users (when you leave off the USING PLUGIN clause).
Mark
[1]:
https://www.firebirdsql.org/file/documentation/drivers_documentation/java/4.0.x/release_notes.html#default-authentication-plugins
--
Mark Rotteveel