Page MenuHomePhabricator

Sanity check before $wgHooks['UserLoadAfterLoadFromSession'] doesn't validate all the required settings
Closed, ResolvedPublic

Description

Author: damian

Description:
Diff of changes

The current sanity check which ensures that the wgLDAPAutoAuthUsername variable is set to something doesn't ensure that the wgLDAPAutoAuthDomain is set to something.

If the wgLDAPAutoAuthDomain is not set and the hook is loaded, when the auth call runs it ends up generating a php warning and no debug output.

The attached patch resolves the issue.


Version: unspecified
Severity: minor

Attached:

Details

Reference
bz34787