Extension talk:SSL authentication

Working on integrating this into the LDAP Authentication plugin
This plugin is great, and exactly what I was looking for. I'll be integrating this into my LDAP Authentication plugin. I've been looking for documentation on how to do this for the past couple of weeks, but this plugin fits my need perfectly.

Thanks for the great work!

-- Ryan Lane

Little bug
Great work :), but when I enter my site first time in browsers session - I am not logged. The problem is probably in file SSLAuthPlugin.php in function SSLAuth:

SEARCH: //If exists, log them in   if($tmpuser->getID != 0) {       $wgUser = &$tmpuser; $wgUser->setCookies; $wgUser->setupSession; return; } REPLACE WITH: //If exists, log them in   if($tmpuser->getID != 0) {       $wgUser = &$tmpuser; $wgUser->setupSession; // Before cookies! $wgUser->setCookies; return; }

-- Krzysztof Kozlowski

tested with mediawiki 1.9?
Anyone else tried this out? I'm having a hell of a time getting it to work out.

Re - MediaWiki 1.9
Tested, but following changes were needed in SSLAuthPlugin.php: FIND: $tmpuser = User::LoadFromSession; REPLACE WITH: $tmpuser = new User ; $tmpuser->LoadFromSession; FIND: $tmpuser = User::newFromName($ssl_UN); REPLACE WITH: unset($tmpuser) ; $tmpuser = new User ; $tmpuser = $tmpuser->newFromName($ssl_UN);

And works OK

-- Krzysztof Kozlowski (kozik [some special char] kozik.net.pl)

1.9 better, but new error
Original exception: exception 'MWException' with message 'Unstub loop detected on call of $wgUser->getOption from StubUserLang::_newObject ' in /var/www/wiki/includes/StubObject.php:54

Re: 1.9 better, but new error
Fix: FIND: //Okay, kick this up a notch then... $wgUser = &$tmpuser;

REPLACE WITH: //Okay, kick this up a notch then... $wgUser = new User;

I had to change also this: function allowPasswordChange { return false; } TO: function allowPasswordChange { return true; // KK - bug: password-change-forbidden }

Krzysztof Kozlowski

gridsitewiki
Is it worth investigating if the work done for x509 integration with 1.4.x tree as part of GridSiteWiki can be reused?