Thread:Extension talk:LDAP Authentication/Hook LdapAutoAuthentication::Authenticate failed to return a value; should return true to continue hook processing or false to abort.

Entering AutoAuthSetup. wgLDAPAutoAuthUsername is not null, adding hooks.

Warning: call_user_func_array [function.call-user-func-array]: First argument is expected to be a valid callback, 'LdapAutoAuthentication::Authenticate' was given in /var/www/ldapwiki/includes/Hooks.php on line 117

Interner Fehler Detected bug in an extension! Hook LdapAutoAuthentication::Authenticate failed to return a value; should return true to continue hook processing or false to abort.

Backtrace:


 * 1) 0 /var/www/ldapwiki/includes/User.php(810): wfRunHooks('UserLoadFromSes...', Array)
 * 2) 1 /var/www/ldapwiki/includes/User.php(260): User->loadFromSession
 * 3) 2 /var/www/ldapwiki/includes/User.php(1870): User->load
 * 4) 3 [internal function]: User->getOption('language')
 * 5) 4 /var/www/ldapwiki/includes/StubObject.php(58): call_user_func_array(Array, Array)
 * 6) 5 /var/www/ldapwiki/includes/StubObject.php(184): StubObject->_call('getOption', Array)
 * 7) 6 [internal function]: StubUser->__call('getOption', Array)
 * 8) 7 /var/www/ldapwiki/includes/StubObject.php(146): StubUser->getOption('language')
 * 9) 8 /var/www/ldapwiki/includes/StubObject.php(99): StubUserLang->_newObject
 * 10) 9 /var/www/ldapwiki/includes/StubObject.php(57): StubObject->_unstub('getCode', 5)
 * 11) 10 /var/www/ldapwiki/includes/StubObject.php(141): StubObject->_call('getCode', Array)
 * 12) 11 [internal function]: StubUserLang->__call('getCode', Array)
 * 13) 12 /var/www/ldapwiki/includes/MessageCache.php(819): StubUserLang->getCode
 * 14) 13 [internal function]: MessageCache->loadMessagesFile('/var/www/ldapwi...', false)
 * 15) 14 /var/www/ldapwiki/includes/StubObject.php(58): call_user_func_array(Array, Array)
 * 16) 15 /var/www/ldapwiki/includes/StubObject.php(76): StubObject->_call('loadMessagesFil...', Array)
 * 17) 16 [internal function]: StubObject->__call('loadMessagesFil...', Array)
 * 18) 17 /var/www/ldapwiki/includes/GlobalFunctions.php(2901): StubObject->loadMessagesFile('/var/www/ldapwi...', false)
 * 19) 18 /var/www/ldapwiki/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php(216): wfLoadExtensionMessages('SemanticMediaWi...')
 * 20) 19 [internal function]: smwfSetupExtension
 * 21) 20 /var/www/ldapwiki/includes/Setup.php(310): call_user_func('smwfSetupExtens...')
 * 22) 21 /var/www/ldapwiki/includes/WebStart.php(129): require_once('/var/www/ldapwi...')
 * 23) 22 /var/www/ldapwiki/index.php(42): require_once('/var/www/ldapwi...')
 * 24) 23 {main}

Config in LocalSettings.php: require_once ('extensions/LdapAuthentication.php'); $wgLDAPDomainNames = array( 'BUCHNER.LOCAL' ); $wgLDAPServerNames = array( 'BUCHNER.LOCAL' => 'dc01.buchner.local' ); $wgLDAPSearchStrings = array( 'BUCHNER.LOCAL' => 'USER-NAME@BUCHNER.LOCAL' ); $wgLDAPEncryptionType = array( 'BUCHNER.LOCAL' => 'clear' ); $wgMinimalPasswordLength = 1; $wgLDAPAutoAuthDomain = "BUCHNER.LOCAL"; $wgLDAPBaseDNs = array("BUCHNER.LOCAL"=>"DC=buchner,DC=local"); $wgLDAPDebug = 2; $wgLDAPSearchAttributes = array("BUCHNER.LOCAL"=>"sAMAccountName");
 * 1) $wgAuth = new LdapAuthenticationPlugin;

// REMOTE_USER will be in the form username@EXAMPLE.COM, if we // just chop off @EXAMPLE.COM, we have the username. You can change // this as needed. $wgLDAPAutoAuthUsername = preg_replace( '/@.*/', '', $_SERVER["REMOTE_USER"] ); AutoAuthSetup; $wgShowExceptionDetails = true;

btw no difference if $wgAuth not commented out