From 9a97a7530f2a637cbb95603cfa4e0b51da753207 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Fri, 10 Jul 2015 09:20:43 -0700 Subject: [PATCH] Add 'AuthPluginStrict' log to identify users who are unable to authenticate To be able to identify any users who are unable to log in when switching from allowing local authentication to strict. Change-Id: I2ebdccdad9c7794d1c1b13db6a646a43bc770c4e --- includes/User.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/User.php b/includes/User.php index 95ac0f1ed1..772330bb26 100644 --- a/includes/User.php +++ b/includes/User.php @@ -4005,6 +4005,7 @@ class User implements IDBAccessObject { return true; } elseif ( $wgAuth->strict() ) { // Auth plugin doesn't allow local authentication + wfDebugLog( 'AuthPluginStrict', "Authentication denied for {$this->getName()}" ); return false; } elseif ( $wgAuth->strictUserAuth( $this->getName() ) ) { // Auth plugin doesn't allow local authentication for this user name -- 2.20.1