顯示頁面舊版反向連結Fold/unfold all回到頁頂 本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得它不應被鎖上,請詢問管理員。 ====== DokuWiki 採用 Mantis 認證權限 ====== * Dokuwiki : 2016-06-26a "Elenor of Tsort" * Mantis : 1.3.4 ===== Dokuwiki ===== * 安裝 [[https://www.dokuwiki.org/plugin:authmantis|Mantis Authentication Integration Plugin]] * 設定 Mantis 相關資訊 /conf/local.protected.php <file> <?php define( 'MANTIS_ROOT', '/var/www/html/mantis/' ); define( 'MANTIS_URL', 'http://192.168.0.242/mantis/' ); require_once( MANTIS_ROOT . 'core.php' ); ?> </file> * 將認證方式改成 authmantis , /conf/local.php <file> <?php /* * Dokuwiki's Main Configuration File - Local Settings * Auto-generated by config plugin * Run for user: * Date: Mon, 12 Dec 2016 14:24:17 +0000 */ $conf['title'] = '知識管理庫'; $conf['lang'] = 'zh-tw'; : $conf['authtype'] = 'authmantis'; $conf['superuser'] = '@ADMINISTRATOR'; : </file> * 設定 Mantis 對應權限 /conf/acl.auth.php <file> : * @ALL 0 * @user 8 * @VIEWER 1 * @REPORTER 2 * @UPDATER 4 * @DEVELOPER 8 * @MANAGER 16 * @ADMINISTRATOR 16 </file> * 這樣在 Mantis 登入後, 直接到 dokuwiki 網頁就會直接以 Mantis 登入身份狀態存取 * 如果編輯 wiki 時工具列無法完整呈現時, 需在 .htaccess 增加以下設定 <file> : : ## Not all installations will require the following line. If you do, ## change "/dokuwiki" to the path to your dokuwiki directory relative ## to your document root. RewriteBase /wiki # for Integration Mantis Toobar error issue Header set Content-Security-Policy "allow 'self'; media-src *; img-src *; script-src 'self' 'unsafe-inline' https://ajax.googleapis.com www.google-analytics.com; style-src 'self' 'unsafe-inline';" : </file> ===== 參考網址 ===== * https://www.dokuwiki.org/plugin:authmantis * https://www.mantisbt.org/wiki/doku.php/mantisbt:issue:7075:integration_with_dokuwiki * https://github.com/Ventzy/AuthMantis/issues/1 * https://www.dokuwiki.org/config * https://forum.dokuwiki.org/post/45042 {{tag>mantis dokuwiki auth}} tech/dokuwiki_auth_mantis.txt 上一次變更: 2016/12/14 23:33由 jonathan