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

Attempting to use Legacy_Auth directly after install doesn't work, restart of service is required [CORE4153] #4480

Closed
firebird-issue-importer opened this issue Aug 2, 2013 · 7 comments

Comments

@firebird-issue-importer
Copy link

firebird-issue-importer commented Aug 2, 2013

Submitted by: @mrotteveel

I installed Firebird 3.0 alpha 1 with the legacy authentication enabled in the installer. Connecting directly after installation with for example Flamerobin (which uses fbclient) works. But connecting using Jaybird 2.2.3 (with sysdba/masterkey as I configured in the installer) yields an exception:

Exception in thread "main" org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544472. Your user name and password are not defined. Ask your database administrator to set up a Firebird login.
at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:123)

After restarting the Firebird service everything works as expected. It looks like the modifications to the firebird.conf are only written to disk after the service has been started and the installer has exited (file is not properly closed?). If I look in the firebird.conf just before clicking 'Finish' on the 'Completing the Firebird Setup Wizard' page with 'Start firebird now?' enabled, the authentication section contains:

#⁠ Per-database configurable.
#⁠
#⁠AuthServer = Srp, Win_Sspi
#⁠
#⁠ Per-connection and per-database configurable.
#⁠
#⁠AuthClient = Srp, Win_Sspi, Legacy_Auth

After I click finish it is changed to:

#⁠ Per-database configurable.
#⁠
#⁠AuthServer = Srp, Win_Sspi
AuthServer = Srp, Win_Sspi, Legacy_Auth
#⁠
#⁠ Per-connection and per-database configurable.
#⁠
#⁠AuthClient = Srp, Win_Sspi, Legacy_Auth

Commits: 92587f6 FirebirdSQL/fbt-repository@5e21826 FirebirdSQL/fbt-repository@180a4ae

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Aug 2, 2013

Modified by: @mrotteveel

priority: Major [ 3 ] => Minor [ 4 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Aug 2, 2013

Commented by: @dyemanov

Authentication is performed by the network listener, this means that the appropriate settings from firebird.conf are read once at the server startup. So it appears that the installer starts the server first and only then modifies the configuration. I hope Paul will elaborate.

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Aug 2, 2013

Modified by: @dyemanov

assignee: Paul Reeves [ paul_reeves ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Aug 5, 2013

Modified by: @reevespaul

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

resolution: Fixed [ 1 ]

Fix Version: 3.0 Alpha 2 [ 10560 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Mar 27, 2014

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Jan 18, 2016

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: No test

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Aug 21, 2016

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: No test => Cannot be tested

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