Add 'AuthPluginStrict' log to identify users who are unable to authenticate
authorKunal Mehta <legoktm@gmail.com>
Fri, 10 Jul 2015 16:20:43 +0000 (09:20 -0700)
committerBryanDavis <bdavis@wikimedia.org>
Mon, 13 Jul 2015 17:37:35 +0000 (17:37 +0000)
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

index 95ac0f1..772330b 100644 (file)
@@ -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