Unsupported plugin Legacy Auth

55 views
Skip to first unread message

Tomasz Dubiel

unread,
May 10, 2023, 2:18:10 PM5/10/23
to firebird-net-provider
Hello. Is it a bug or I configured something bad?
System.NotSupportedException: Not supported plugin 'Legacy_Auth'.
   w FirebirdSql.Data.Client.Managed.AuthBlock.Start(Byte[] serverData, String acceptPluginName, Boolean isAuthenticated, Byte[] serverKeys)
   w FirebirdSql.Data.Client.Managed.GdsConnection.Identify(String database)
   w FirebirdSql.Data.Client.ClientFactory.CreateManagedDatabase(ConnectionString options)
   w FirebirdSql.Data.Client.ClientFactory.CreateDatabase(ConnectionString options)
   w FirebirdSql.Data.FirebirdClient.FbConnectionInternal.Connect()
   w FirebirdSql.Data.FirebirdClient.FbConnection.Open()
I try to connect to Firebird 3 database and get this error. FirebirdClient the newest version
Best regards.

Jiří Činčura

unread,
May 10, 2023, 2:22:19 PM5/10/23
to 'Mr. John' via firebird-net-provider
With Firebird 3 use (primarily) SRP for auth. You probably disabled that in `firebird.conf`.

--
Mgr. Jiří Činčura
https://www.tabsoverspaces.com/

Tomasz Dubiel

unread,
May 10, 2023, 2:23:29 PM5/10/23
to firebird-net-provider
No, in firebird.conf there is:
AuthServer = Srp, Legacy_Auth
UserManager = Srp, Legacy_UserManager

Tomasz Dubiel

unread,
May 10, 2023, 2:24:11 PM5/10/23
to firebird-net-provider

Tomasz Dubiel

unread,
May 10, 2023, 2:25:58 PM5/10/23
to firebird-net-provider
Could you confirm it? If it is a bug, how quick could be the fix?

Jiří Činčura

unread,
May 10, 2023, 2:27:46 PM5/10/23
to 'Mr. John' via firebird-net-provider
> Could you confirm it? If it is a bug, how quick could be the fix?

No, it's not a bug.

Tomasz Dubiel

unread,
May 10, 2023, 2:28:17 PM5/10/23
to firebird-net-provider
I mean: at all, net should connect to Srp, as it is listed first, but instead, tries only on Legacy_Auth and stops.

Tomasz Dubiel

unread,
May 10, 2023, 2:28:46 PM5/10/23
to firebird-net-provider
So what is wrong with this conf? We have this on multiple our customers and java programs connect without any problems.

Jiří Činčura

unread,
May 10, 2023, 2:32:47 PM5/10/23
to 'Mr. John' via firebird-net-provider
> So what is wrong with this conf? We have this on multiple our customers
> and java programs connect without any problems.

The snippet of config you provided looks OK. I would try disabling Legacy_Auth and Legacy_UserManager all together and see whether it is taken into account, as a first troubleshooting step.

Tomasz Dubiel

unread,
May 10, 2023, 2:33:42 PM5/10/23
to firebird-net-provider
Please explain what is wrong. Again: firebird.conf is:

AuthServer = Srp, Legacy_Auth
UserManager = Srp, Legacy_UserManager

Correct firebird.conf values.
I run net program and it complains: " System.NotSupportedException: Not supported plugin 'Legacy_Auth'. " - why?

Tomasz Dubiel

unread,
May 10, 2023, 2:34:20 PM5/10/23
to firebird-net-provider
I can try, but only temporarily. Legacy must be enabled for this customer.

Tomasz Dubiel

unread,
May 10, 2023, 2:36:50 PM5/10/23
to firebird-net-provider
For me, for my knowledge of Firebird, NET incorrectly tries Legacy_Auth instead of Legacy_UserManager;
Furthermore, SRP is enabled and is first in configuration, so it should use SRP.

Tomasz Dubiel

unread,
May 10, 2023, 2:56:23 PM5/10/23
to firebird-net-provider
OK, a little correction.
The same user is on Srp and on Legacy. My mistake was to set a different password on one plugin, probably on Srp - that's why NET tried on Legacy.
Now it works, but most probably there is still a bug, if there is only a Legacy enabled. NET would probably then fail to connect.

Jiří Činčura

unread,
May 10, 2023, 3:01:27 PM5/10/23
to 'Mr. John' via firebird-net-provider
> a Legacy enabled. NET would probably then fail to connect.

Recent versions of provider yes. If you want legacy auth only and not Srp (or newer), you'd have to use old providers.

Tomasz Dubiel

unread,
May 10, 2023, 3:04:01 PM5/10/23
to firebird-net-provider
Do you mean it is intended change? If so, why is there no proper message then like: "Legacy_UserManager is not supported. Turn on Srp"

Tomasz Dubiel

unread,
May 10, 2023, 3:12:59 PM5/10/23
to firebird-net-provider
You see, I made one mistake, but it shouldnt have caused the program to fail to connect. If I got a message about Legacy being unsupported, I would quicker find out that I set an incorrect password for Srp.

Jiří Činčura

unread,
May 10, 2023, 3:25:33 PM5/10/23
to 'Mr. John' via firebird-net-provider
Legacy_UserManager is concern for server. Client sees Legacy_Auth plugin.

Tomasz Dubiel

unread,
May 10, 2023, 3:28:24 PM5/10/23
to firebird-n...@googlegroups.com
Ok, I understand. Topic closed.

--
You received this message because you are subscribed to the Google Groups "firebird-net-provider" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebird-net-pro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebird-net-provider/72e4dcf6-0c18-435a-af74-f3cfb9c745ab%40app.fastmail.com.
Reply all
Reply to author
Forward
0 new messages