Thread:Extension talk:LDAP Authentication/Kerberized page needs to loaded 2 times to get logged in

Hi,

I have set up Mediawiki as a company wiki using AD authentication server. I have also enabled kerberos such that when loading a predefined page the user gets logged in without typing any username/password. This works great! But since loading the kerberized page takes ca 6 seconds each time it takes ca 12 seconds to log in which is too long, so this is still in test.

I found a quick, dirty and potentially insecure way to hack this but hopefully there is a better solution: In extensions/LdapAuthentication/LdapAutoAuthentication.php at the end of Authenticate function there is a line: wfSetupSession; The first time this gets called $_SESSION['wsToken'] is not properly set, so it gets called one more time and then things seem to get set correctly. Just after wfSetupSession I added the line: $_SESSION['wsToken'] = $user->mToken; This seems to work fine. At least I only have to load the page once to get logged in.

Using Apache, Mediawiki 1.16, RHEL 5.3, PHP 5.1.6, Mysql Ver 14.12 Distrib 5.0.45

How should I get logged in without loading the page twice?

Thanks, Kjell