Package: mediawiki-extensions-ldapauth Version: 2.11 Severity: important Tags: patch
My server is running Debian Wheezy. I'm using the included MediaWiki with LDAP and Kerberos authentication: http://www.mediawiki.org/wiki/Extension:LDAP_Authentication/Kerberos_Configuration_Examples#Apache_configuration_for_allowing_Kerberos_login_without_protecting_an_entire_wiki) If automatic authentication is enabled, the login is broken for normal and automatic login. Upstream already has a one-line fix: https://git.wikimedia.org/commitdiff/mediawiki%2Fextensions%2FLdapAuthentication/1946855fe73d36f68acc323fc2d51e12d4f36f07 I've appended the upstream patch for convenience.
commit 1946855fe73d36f68acc323fc2d51e12d4f36f07 Author: Ryan Lane <rl...@wikimedia.org> Date: Sun Apr 22 12:18:40 2012 -0700 Fix for AuthAuthUsername Patch thanks to Guillaume Beaudoin. Change-Id: Icdab7023a58455a1289343a4963ce48db005f28a diff --git a/LdapAuthentication.php b/LdapAuthentication.php index b422123..2449cc1 100644 --- a/LdapAuthentication.php +++ b/LdapAuthentication.php @@ -1894,7 +1894,7 @@ function AutoAuthSetup() { $wgAuth->printDebug( "Entering AutoAuthSetup.", NONSENSITIVE ); - if ( !$wgAuth->getConf( 'AutoAuthUsername' ) ) { + if ( $wgAuth->getConf( 'AutoAuthUsername' ) !== "" ) { $wgAuth->printDebug( "wgLDAPAutoAuthUsername is not null, adding hooks.", NONSENSITIVE ); $wgHooks['UserLoadAfterLoadFromSession'][] = 'LdapAutoAuthentication::Authenticate';