Warning: call_user_func_array()
[function.call-user-func-array]: First argument is expected
to be a valid callback,
'LdapAutoAuthentication::Authenticate' was given in
/srv/web/mediawiki-1.13.3/includes/Hooks.php on line 117
Internal error
I could have sworn I tested this in 1.13 and it was working properly,
but I may have something messed up in the authenticate() function. Try
this:
--- LdapAutoAuthentication.php.old 2009-02-03 17:20:13.460951000
-0600
+++ LdapAutoAuthentication.php 2009-02-03 17:25:08.974031000 -0600
@@ -7,7 +7,16 @@
*
* @access public
*/
- static function Authenticate( $user, &$result ) {
+ static function AuthenticateAfterLoad( $user ) {
+ return LdapAutoAuthentication::Authenticate( true, $user
);
+ }
+
+ /**
+ * Does the web server authentication piece of the LDAP plugin.
+ *
+ * @access public
+ */
+ static function Authenticate( &$result, $user ) {
global $wgUser;
global $wgAuth;
global $wgLDAPAutoAuthUsername;
--- LdapAuthentication.php.old 2009-02-03 17:25:44.236929000 -0600
+++ LdapAuthentication.php 2009-02-03 17:26:13.602250000 -0600
@@ -1741,7 +1741,7 @@
if ( version_compare( $wgVersion, '1.14.0', '<' ) ) {
$wgHooks['UserLoadFromSession'][] =
'LdapAutoAuthentication::Authenticate';
} else {
- $wgHooks['UserLoadAfterLoadFromSession'][] =
'LdapAutoAuthentication::Authenticate';
+ $wgHooks['UserLoadAfterLoadFromSession'][] =
'LdapAutoAuthentication::AuthenticateAfterLoad';
}
$wgHooks['PersonalUrls'][] =
'LdapAutoAuthentication::NoLogout'; /* Disallow logout link */
}
V/r,
Ryan Lane