DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:authpdo:phpbb3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
plugin:authpdo:phpbb3 [2017-08-04 11:39]
amulheirn Clarified that this is not single-sign-on
plugin:authpdo:phpbb3 [2018-04-30 14:22] (current)
Aleksandr
Line 1: Line 1:
 <= [[plugin:authPDO]] <= [[plugin:authPDO]]
  
-======phpBB3====== +====== phpBB3 ====== 
-Configuration for [[plugin:authPDO]] plugin to authenticate with [[http://phpbb.com|open-source bulletin-board system phpBB]].+ 
 +Configuration for [[plugin:authPDO]] plugin to authenticate with [[https://www.phpbb.com/|open-source bulletin-board system phpBB]]. 
  
 ===== Scenario ===== ===== Scenario =====
-In this scenario, the intention is to permit the same users who are registered on the forum to make edits in the Wiki.  The wiki is not open to all.   Users must first register on the forum, after which they can log into the wiki as well using the same credentials.+ 
 +In this scenario, the intention is to permit the same users who are registered on the forum to make edits in the Wiki. The wiki is not open to all. Users must first register on the forum, after which they can log into the wiki as well using the same credentials.
  
 In this example, the phpBB release is version 3.2, running on MySQL. In this example, the phpBB release is version 3.2, running on MySQL.
  
-The Access Control List feature in Dokuwiki can be used to restrict what users can do.  The ''@ALL'' group can be given read access, while ''@<PHPBB-GROUPNAME>'' can be used to permit write access for example.  +The Access Control List feature in DokuWiki can be used to restrict what users can do. The ''@ALL'' group can be given read access, while ''@<PHPBB-GROUPNAME>'' can be used to permit write access for example. 
 + 
 +Note that this does not give a 'single sign-on' experience, but simply enables a user to have the same username/password on both phpBB and the DokuWiki installation.
  
-Note that this does not give a 'single sign-on' experience, but simply enables a user to have the same username/password on both PHPBB and the Dokuwiki installation. 
  
 ===== Plugin Configuration ===== ===== Plugin Configuration =====
Line 19: Line 23:
 In the AuthPDO section, configure the following: In the AuthPDO section, configure the following:
  
-| plugin>authpdo>debug | Checkbox - enable this for testing, otherwise disable | +| plugin>authpdo>debug                | Checkbox -- enable this for testing, otherwise disable      
-| plugin>authpdo>dsn   | ''%%mysql:host=localhost;dbname=<DBNAME>;charset=utf8;%%''+| plugin>authpdo>dsn                  | ''%%mysql:host=localhost;dbname=<DBNAME>;charset=utf8;%%''  
-| plugin>authpdo>user   | <DB-USERNAME>+| plugin>authpdo>user                 | <DB-USERNAME>  
-| plugin>authpdo>pass   | <DB-PASSWORD>+| plugin>authpdo>pass                 | <DB-PASSWORD>  
-| plugin>authpdo>select-user   | ''%%SELECT user_password AS hash, username AS name, username_clean AS user, user_email AS mail FROM phpbb_users WHERE username = :user%%''+| plugin>authpdo>select-user          | ''%%SELECT user_password AS hash, username AS name, username_clean AS user, user_email AS mail FROM phpbb_users WHERE username = :user%%''   
-| plugin>authpdo>check-pass   | ''%%SELECT group_name AS "group" FROM phpbb_groups, phpbb_users WHERE phpbb_groups.group_id = phpbb_users.group_id AND username = :name%%''+| plugin>authpdo>check-pass           | ''%%SELECT group_name AS "group" FROM phpbb_groups, phpbb_users WHERE phpbb_groups.group_id = phpbb_users.group_id AND username = :name%%''  
-| plugin>authpdo>select-user-groups   | ''%%SELECT group_name AS "group" FROM phpbb_groups, phpbb_users WHERE phpbb_groups.group_id = phpbb_users.group_id AND username = :name%%''+| plugin>authpdo>select-user-groups   | ''%%SELECT group_name AS "group" FROM phpbb_groups, phpbb_users WHERE phpbb_groups.group_id = phpbb_users.group_id AND username = :name%%''  
-| Other fields   | Leave empty |+| Other fields                        | Leave empty   |
  
  
 In the Authentication section: In the Authentication section:
  
-| authtype   | authpdo | +| authtype        | authpdo | 
-| passcrypt   | hmd5 | +| passcrypt       | hmd5 | 
-| defaultgroup   | ''users''+| defaultgroup    | ''users''
-| superuser   | ''@ADMINISTRATORS''+| superuser       | ''@ADMINISTRATORS''
-| manager   | ''@ADMINISTRATORS''+| manager         | ''@ADMINISTRATORS''
-| disableactions  | Uncheck everything to prevent users registering in Dokuwiki |+| disableactions  | Uncheck everything to prevent users registering in DokuWiki  | 
plugin/authpdo/phpbb3.txt · Last modified: 2018-04-30 14:22 by Aleksandr