Extension:PHPBB Auth/ru

Это расширения связывает таблицу пользователей MediaWiki с таблицой phpBB для аутентификации, и запрещает создание новых учетных записей в MediaWiki. Пользователи должны входить в вики под учётной записью phpBB.

Расширение
Расширение требует PHP5, MySQL 4 или 5, MediaWiki 1.11+ и phpBB3. Если вам нужна помочь, зайдите на сайт uber.leetphp.com и выберите «Support» в главном меню.


 * 1) Скачайте расширение (скачать, просмотреть исходный код).
 * 2) Добавьте код, представленный ниже, в конец файла LocalSettings.php.
 * 3) Создайте новую группу в phpBB, назвав её Wiki. Если вы установить значение в   на true, то редактировать MediaWiki смогут только участники группы Wiki.

Правила имен
MediaWiki не следует тем же правилам именования пользователей как phpBB, поэтому могут быть проблемы, если кто-то использует неверное имя пользователя. Хотя, все имена MediaWiki верны в phpBB, но имена пользователей phpBB не действует в MediaWiki. Например, MediaWiki не работает с квадратными [ ] скобками.

Эту проблему можно обойти путем установки расширения для phpBB ограничивающие использование несовместимых символов MediaWiki в phpBB. Модификация «Restrict Username» (бета-версия), может это сделать.

Вместо установки модификации для phpBB, вы можете использовать настройку «Ограничения на символы в имени пользователя» (англ. Limit username chars to) → «Только буквенно-цифровые» (англ. Alphanumeric only) в настройках «Регистрация пользователей» (англ. User registration).

Furthermore, watch out that MediaWiki doesn't allow the same phrase as password that you chose for your username. phpBB doesn't have a problem with password and username being the same phrase.

Problems with not sharing a database
Some users experience an error when phpBB and MediaWiki are in different databases, while other users have no problem doing so. It's possible that this may be related to non-English software, which is common to users reporting the error. For more information, see the php|uber.leet forums.

Deactivated phpBB Accounts
The Plugin currently allows access to the wiki, if a user is listed in the phpBB's user table (and member of a specific group, if that feature is used). It is not checking, whether the account is set active or inactive in the phpBB's database. This allows some users to log into the wiki with a phpBB account, that was not reviewed by the phpBB administrator. (See also entry on the discussion page)

Журнал изменений

 * Release 3.0.3
 * Fixed a potential SQL injection security hole.
 * Added support for multiple Wiki Groups.


 * Release 3.0.2
 * Now works with and requires phpBB3.
 * Now works with and requires MW 1.11.x
 * Now requires PHP5.
 * Uses phpBB3 username case folding methods.
 * Uses phpass for password hashing.
 * When the user is not in the "Wiki" group the user now sees a MediaWiki error that says so.
 * When the user is not found in the phpBB user database they now see a MediaWiki error asking them to register.
 * Added a link to phpBB's register page from the login screen.
 * Plug-in now uses MediaWiki Hooks.


 * Release 2.7
 * Fixed a potential SQL injection security hole.


 * Release 2.6
 * Fixed a login bug where MW was displaying an error the first time a user logged into it.
 * Now works with MW 9.2


 * Release 2.5
 * I made a change to the MySQL connection that might fix some of the issues people have been having.


 * Release 2.4
 * Better MySQL error reporting. More solid MySQL Query calls.


 * Release 2.3
 * phpBB usernames with an apostrophe in them will now work.


 * Release 2.2
 * Fixed a bug that was printing a SQL statment when called.


 * Release 2.1
 * Fixed a bug that was not letting preferences be saved.


 * Release 2.0
 * Works with MediaWiki 1.5.x
 * Fixed the dup name issues. The 1.5 release of MediaWiki added a new function to check for the correct casing of a name before adding it to the wiki database.
 * I test user names with a space in them and they seem to work fine too.
 * Added support for phpBB and the wiki being on two different servers/databases.
 * With the new release of MediaWiki 1.5, I was able to disable some template stuff.


 * Release 1.9
 * Now auto detects MySQL version and uses the correct query.
 * Ver 1.9 will work on both MySQL 4.0.x and 4.1.x


 * Release 1.7
 * Added the code to allow the admin to disable the phpBB wiki group requirement.


 * Release 1.5
 * MediaWiki forces all usernames into a first letter uppercase the rest lower case. (gotroot becomes Gotroot) This is ok until you have a user who has an uppercase letter in the middle of their name. (RetroFit becomes Retrofit) This can cause a problem when trying to Auth with the phpBB user table. I do not have a fix for this. (FIXED)

Community Contributions
Here are some contributions the community has made for this plug-in. They are custom changes that are not part of the plug-ins default code. If you have problems with the custom code below please contact the authors of those sections.

Additional security
The Plugin does not test if a phpBB account is active or not when granting access to the wiki. So anyone can get access even if the phpBB account is not active. In cases, where the access to the phpBB is limited by the administrator, a account that has not yet been allowed to the phpBB, should usually not be allowed to the wiki either. To reach that the Plugin should by default check the `user_type` column in the phpBB_user table and report an error, if the type was '1' (deactivated account) but grant access if the type is '0' (active account) or '2' (phpBB board Founder). Edit on line 328 on Auth_phpBB.php WHERE `username_clean` = '%s' to WHERE `username_clean` = '%s' AND `user_type` != 1 Now an account that is deactivated will not grant acces to the wiki either. Heinrich krebs 09:28, 5 October 2009 (UTC)