Page MenuHomePhabricator

MSSQL should allow opening connections without $wgDBuser being set
Closed, DeclinedPublic

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 Medium.Nov 22 2014, 3:08 AM
bzimport set Reference to bz65808.
bzimport added a subscriber: Unknown Object (MLST).
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 Medium to High.
Krinkle updated the task description. (Show Details)
Krinkle removed a subscriber: wikibugs-l-list.

Heads-up: As per RFC discussion in August 2019, the previously experimental support for using Oracle or MSSQL as database backends in MediaWiki core has been removed in MediaWiki 1.34, so this task might end up as declined in the future.