Extension talk:IPBAuth

Cleared this since all issues were addressed with version 1.33

Error right after installation: With FIX.
A friend of mine, which is a developer. Fixed the problem. I'll post it here.

Bug: --- AuthPlugin_IPB.php (old) +++ AuthPlugin_IPB.php @@ -30,6 +30,10 @@ *   http://www.emsaconsulting.com */ +if ( ! defined( 'MEDIAWIKI' ) ) { +      die( 1 ); +} + require_once("AuthPlugin.php"); require_once("Hooks.php"); require_once("GlobalFunctions.php"); @@ -213,8 +217,8 @@        $passHash = addslashes(@$_COOKIE["pass_hash"]); if ($sessionID && $memberID) { -           if ($this->aggressiveSecurity) { $sessionQuery = "SELECT m.name, s.member_id, s.id FROM `ibf_sessions` s LEFT JOIN `ibf_members` m ON s.member_id=m.member_id WHERE s.member_id={$memberID} AND s.id='{$sessionID}' AND m.member_login_key='{$passHash}';"; } -           else { $sessionQuery = "SELECT m.name, s.member_id, s.id FROM `ibf_sessions` s LEFT JOIN `ibf_members` m ON s.member_id=m.member_id WHERE s.member_id={$memberID} AND s.id='{$sessionID}';"; } +           if ($this->aggressiveSecurity) { $sessionQuery = "SELECT m.name, s.member_id, s.id FROM {$this->ipb_prefix}sessions s LEFT JOIN {$this->ipb_prefix}members m ON s.member_id=m.member_id WHERE s.member_id={$memberID} AND s.id='{$sessionID}' AND m.member_login_key='{$passHash}';"; } +           else { $sessionQuery = "SELECT m.name, s.member_id, s.id FROM {$this->ipb_prefix}sessions s LEFT JOIN {$this->ipb_prefix}members m ON s.member_id=m.member_id WHERE s.member_id={$memberID} AND s.id='{$sessionID}';"; } $session_password = mysql_query($sessionQuery, $this->ipb_database); if (@mysql_num_rows($session_password) == 1) { return true; } }

-There is also a small bug in the installer where MySQL info is hard-coded instead of reading from IPB's config that it detects, but I think he already knows because the section has a comment saying "TODO: Fix me!" XD -- Brian

MZXGiant: Good catch. I actually had diff'ed a different patch over these two lines which was somehow lost in translation. I'm fixing it to include the correct changes now (since I had changed the way it did aggressive security entirely)

-Hmm, so should is it advisable to update it to the 1.33a? And if we do updates, how do we do it? Just upload the files and that's it or do we have to reinstall it? Thanks!

MZXGiant: It is advisable to update to 1.33a. As for reinstalling; as long as the installation went smooth and all the fields in the ipbauth_conf.php are populated, it should be okay. Essentially, if you run into any more problems, try a reinstall first :P