Hello, I tried to enable kerberos login in mediawiki. I followed the instructions on the wiki but for version 1.15.3 it looks like it is not working. The problemare the lines to add to LocalSettings.php for the HttpAuth extension
session_start(); if ((!empty($_SERVER['PHP_AUTH_USER']) && !empty($_SERVER['REMOTE_USER'])) || $_COOKIE[$wgDBserver . 'UserID']) { require_once("$IP/extensions/HttpAuthPlugin.php"); $wgAuth = new HttpAuthPlugin(); $wgHooks['AutoAuthenticate'][] = array($wgAuth,'autoAuthenticate'); }
He does not like $_COOKIE[$wgDBserver . 'UserID']
but removing it does not solve the problem.
[Tue May 18 12:18:10 2010] [error] PHP Notice: Undefined index: localhostUserID in /var/www/html/wiki/LocalSettings.php on line 135
Anyone has been succesful in adding Kerberos login capability with MediaWiki 1.15.3 ?
thanks
Rick
I tried to enable kerberos login in mediawiki. I followed the instructions on the wiki but for version 1.15.3 it looks like it is not working. The problemare the lines to add to LocalSettings.php for the HttpAuth extension
session_start(); if ((!empty($_SERVER['PHP_AUTH_USER']) && !empty($_SERVER['REMOTE_USER'])) || $_COOKIE[$wgDBserver . 'UserID']) { require_once("$IP/extensions/HttpAuthPlugin.php"); $wgAuth = new HttpAuthPlugin(); $wgHooks['AutoAuthenticate'][] = array($wgAuth,'autoAuthenticate'); }
He does not like $_COOKIE[$wgDBserver . 'UserID']
but removing it does not solve the problem.
[Tue May 18 12:18:10 2010] [error] PHP Notice: Undefined index: localhostUserID in /var/www/html/wiki/LocalSettings.php on line 135
Anyone has been succesful in adding Kerberos login capability with MediaWiki 1.15.3 ?
The HttpAuth plugin isn't terribly nice.
The LDAP plugin supports Kerberos authentication, but also assumes you are using LDAP as well. It may be a little difficult to set up initially, but it is a lot more reliable and stable than the HttpAuth plugin. See the following page for Kerberos examples:
http://www.mediawiki.org/wiki/Extension:LDAP_Authentication/Kerberos_Configu ration_Examples
Respectfully,
Ryan Lane
mediawiki-l@lists.wikimedia.org