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
J.Degen wrote:
Hi, 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
[snip]
class MyAuthPlugin {
[snip]
Any ideas why this dont work in 1.5.1?
Your class needs to either extend the AuthPlugin base class or implement the entire interface. Additional functions were added to it in 1.5 to better support the LDAP plug-in, which is probably the most frequently used authentication extension.
-- brion vibber (brion @ pobox.com)
mediawiki-l@lists.wikimedia.org