Page MenuHomePhabricator

MSSQL should allow opening connections without $wgDBuser being set
Open, HighPublic

Description

When using $wgDBWindowsAuthentication [option "Windows Authentication"] in the WebInstaller, $wgDBuser is left empty. This causes that no connection is created in DataBase::__construct() and the consequence is that we get an error message telling us that it cannot connect to the database (despite it could in theory) when attempting to access the main page.

Result:
-------------
-------------
Sorry! This site is experiencing technical difficulties.

Try waiting a few minutes and reloading.

(Cannot contact the database server)

--------------------------------------------------------------------------------

-------------
-------------
Expected result:

Working wiki despite no DB user name.

Woraround:
Set a dummy user name.

Details

Reference
bz65808

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 3:08 AM
bzimport added a project: Wikimedia-Rdbms.
bzimport set Reference to bz65808.
bzimport added a subscriber: Unknown Object (MLST).
Rillke created this task.May 27 2014, 2:54 PM
Krinkle renamed this task from MSSQL allows opening connections without $wgDBuser being set to MSSQL should allow opening connections without $wgDBuser being set.Jul 23 2019, 4:49 PM
Krinkle raised the priority of this task from Normal to High.
Krinkle updated the task description. (Show Details)
Krinkle removed a subscriber: wikibugs-l-list.
Restricted Application added a project: Core Platform Team. · View Herald TranscriptJul 23 2019, 5:35 PM