[Mediawiki-l] MW 1.5.1 Loginproblem via POP3 authentication
J.Degen
jens.degen at zid-f.bfinv.de
Fri Nov 4 13:15:56 UTC 2005
Hi,
we using MW 1.4.10 with POP3 authentication without any problems.
We try to upgrade (Testupgrade) and run into some problems.
After Upgrade,with the script, we cant login. We see
Fatal error: Call to undefined function: validdomain() in /var/www/html/wiki3/includes/SpecialUserlogin.php on line 67
Here are the contents of Local* (parts of content ;))
-----------------
require_once( "includes/DefaultSettings.php" );
require_once( 'extensions/MyAuthPlugin.php' );
$wgAuth = new MyAuthPlugin();
-----------------
content of MyAuthPlugin.php
------------------
<?php
class MyAuthPlugin {
function userExists( $username ) {
# Override this!
return true;
}
function authenticate( $username, $password ) {
return imap_open("{127.0.0.1:10110/POP3}", "$username", "$password");
}
function autoCreate() {
return true;
}
function strict() {
return false;
}
function initUser( &$user ) {
# Override this to do something.
}
}
?>
---------------------
Any ideas why this dont work in 1.5.1?
Regards
More information about the MediaWiki-l
mailing list