If you aren't getting any error messages, I can't help you diagnose anything. PHP is likely dying on something, and that's what you need to find.
Can you check your LDAP server logs to see what is going on?
-----Original Message----- From: Ken Keefe [mailto:kjkeefe@gmail.com] Sent: Sunday, February 08, 2009 7:19 PM To: mediawiki-enterprise@lists.wikimedia.org; Lane, Ryan Subject: Re: [Mediawiki-enterprise] LdapAutoAuthentication::Authenticate failedto return a value
Any suggestions on this problem? Any way I can diagnose what is going on here?
Thanks, Ken
On Wed, Feb 4, 2009 at 9:54 AM, Ken Keefe kjkeefe@gmail.com wrote:
Actually, I looked at the code and realized it was looking for an LdapAutoAuthentication class and it wasn't defined anywhere. I was able to find it in your SVN repository, but I don't see it linked or mentioned on the extension's web page. Anyway, I copied that into my extensions directory and added this line below the LdapAuthentication include in the LocalSettings.php file:
require_once('extensions/LdapAutoAuthentication.php');
I don't get the error now, but now my browser gets stuck trying to load the page and nothing happens. I've checked the apache log on the server and it isn't showing anything from the attempted connect.
I also tried applying your patches to see if that helped and it didn't seem to change anything. The browser still just keeps trying to load and finally gives up after 30 or 40 seconds.
Any suggestions?
Thanks, Ken
On Tue, Feb 3, 2009 at 5:28 PM, Lane, Ryan Ryan.Lane@ocean.navo.navy.mil wrote:
> 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 _______________________________________________ Mediawiki-enterprise mailing list Mediawiki-enterprise@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-enterprise
-- Forti et Fideli nihil difficile - Nothing is difficult to the brave and faithful.
-- Forti et Fideli nihil difficile - Nothing is difficult to the brave and faithful.