Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

AuthUserBbPress

Summary: Ability to Authenticate against a MySQL BBPress user database.
Version: 0.1
Prerequisites: MySQL, BBPress
Status: First Release
Maintainer: Simon Cross
Categories: Security

Description

Authenticates users against a BBPress user database. May also work with WordPress (but I haven't tested it).

Notes

Requires MySQL access from PHP. Doesn't actually require BBPress or Wordpress to be installed, just for their databases to be accessible.

Thanks to Ben Wilson and Michael Novak the authors of, respectively, dbauth-0.2.php and AuthUserOpenId which I used as examples of how to write an authentication module.

Requirements

  • MySQL php module

Installation

  • Copy authbbpress.php into your cookbook/ directory.
  • Modify your local/config.php to include something like:
         $BbPressAuthDb = array(
           'host' => 'localhost', # fine if your database is on the same server
           'db' => 'dbname',
           'user' => 'dbuser',
           'password' => 'dbpass',
           'table' => 'bb_users', # might need to change if you have multiple forums
           'userfield' => 'user_login', # probably don't need to change
           'pwfield' => 'user_pass' # probably don't need to change
         );
         include_once("cookbook/authbbpress.php"); // Included before the line below
         include_once("$FarmD/scripts/authuser.php"); // You may have this one already
    
    

Release Notes

Comments

Chuck R : 2008-12-01 21:49:23 -
Greetings,
It appears that the use of this method in current versions will insure
that ALL authentication in PMW will be disabled. Meaning; that anyone will be able to edit/add/upload/delete your wiki/website without any intervention from PMW. I attempted
to use this recipe on a current version of PMW, and BBpress. I installed/configured BBpress. Then installed PMW applying the recipie described here. But am never prompted to logon when using the edit link, and have no trouble uploading entire CD images to my PM wiki - never asked to logon. :(

Is there any information missing here that also needs to be used to accomplish BBpress DB authentication?

Thank you for all your time and consideration.

--Chuck R

See Also

  • AuthUser - Parent module required to run this add-on

Contributors

Edit - History - Print - Recent Changes - Search
Page last modified on December 02, 2008, at 12:21 AM