亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 學院 > 開發設計 > 正文

DokuWiki整合Zentao的用戶授權及分組體系

2019-11-15 02:05:59
字體:
來源:轉載
供稿:網友
DokuWiki整合Zentao的用戶授權及分組體系

老外們把精力都放在了怎樣做通用性上面了。

Doku后臺有切換授權方式的選項,改成MySQL

注:如下修改mysql.conf.php后,要把分組和權限設置結合起來,還需要配置dokuwiki的分組,zentao默認有一些角色分組:

acl.auth.php

# acl.auth.php# <?php exit()?># Don't modify the lines above## access Control Lists## Auto-generated by install script# Date: Mon, 05 Jan 2015 13:09:23 +0000*@ALL1*@admin8*@user8*@dev8*@qa8*@pm8*@po8*@td8*@pd8*@top8*@guest1

conf/mysql.conf.php

<?php/* * This is an example configuration for the mysql auth plugin. * * This SQL statements are optimized for following table structure. * If you use a different one you have to change them accordingly. * See comments of every statement for details. * * TABLE users *     uid   login   pass   firstname   lastname   email * * TABLE groups *     gid   name * * TABLE usergroup *     uid   gid * * To use this configuration you have to copy them to local.PRotected.php * or at least include this file in local.protected.php. *//* Options to configure database access. You need to set up this * options carefully, otherwise you won't be able to access you * database. */$conf['plugin']['authmysql']['server']   = 'localhost';$conf['plugin']['authmysql']['user']     = 'zentaoxx';$conf['plugin']['authmysql']['passWord'] = 'xxxxx';$conf['plugin']['authmysql']['database'] = 'zentaoxx';/* This option enables debug messages in the mysql plugin. It is * mostly useful for system admins. */$conf['plugin']['authmysql']['debug'] = 0;/* Normally password encryption is done by DokuWiki (recommended) but for * some reasons it might be usefull to let the database do the encryption. * Set 'forwardClearPass' to '1' and the cleartext password is forwarded to * the database, otherwise the encrypted one. */$conf['plugin']['authmysql']['forwardClearPass'] = 1;/* Multiple table Operations will be protected by locks. This array tolds * the plugin which tables to lock. If you use any aliases for table names * these array must also contain these aliases. Any unamed alias will cause * a warning during operation. See the example below. */$conf['plugin']['authmysql']['TablesToLock']= array();//"users", "users AS u","groups", "groups AS g", "usergroup", "usergroup AS ug"/***********************************************************************//*       Basic SQL statements for user authentication (required)       *//***********************************************************************//* This statement is used to grant or deny access to the wiki. The result * should be a table with exact one line containing at least the password * of the user. If the result table is empty or contains more than one * row, access will be denied. * * The plugin accesses the password as 'pass' so a alias might be necessary. * * Following patters will be replaced: *   %{user}    user name *   %{pass}    encrypted or clear text password (depends on 'encryptPass') *   %{dgroup}  default group name */$conf['plugin']['authmysql']['checkPass']   = "SELECT password                                               FROM zt_usergroup AS ug                                               JOIN zt_user AS u ON u.account=ug.account                                               JOIN zt_group AS g ON g.id=ug.group                                               WHERE account='%{user}'                                               AND name='%{dgroup}'";/* This statement should return a table with exact one row containing * information about one user. The field needed are: * 'pass'  containing the encrypted or clear text password * 'name'  the user's full name * 'mail'  the user's email address * * Keep in mind that Dokuwiki will access thise information through the * names listed above so aliasses might be neseccary. * * Following patters will be replaced: *   %{user}    user name */$conf['plugin']['authmysql']['getUserInfo'] = "SELECT password, realname AS name, email AS mail                                               FROM zt_user                                               WHERE account='%{user}'";/* This statement is used to get all groups a user is member of. The * result should be a table containing all groups the given user is * member of. The plugin accesses the group name as 'group' so an alias * might be nessecary. * * Following patters will be replaced: *   %{user}    user name */$conf['plugin']['authmysql']['getGroups']   = "SELECT name as `group`                                               FROM zt_group g, zt_user u, zt_usergroup ug                                               WHERE u.account = ug.account                                               AND g.id = ug.group                                               AND u.account='%{user}'";/***********************************************************************//*      Additional minimum SQL statements to use the user manager      *//***********************************************************************//* This statement should return a table containing all user login names * that meet certain filter criteria. The filter expressions will be added * case dependend by the plugin. At the end a sort expression will be added. * Important is that this list contains no double entries fo a user. Each * user name is only allowed once in the table. * * The login name will be accessed as 'user' to a alias might be neseccary. * No patterns will be replaced in this statement but following patters * will be replaced in the filter expressions: *   %{user}    in FilterLogin  user's login name *   %{name}    in FilterName   user's full name *   %{email}   in FilterEmail  user's email address *   %{group}   in FilterGroup  group name */$conf['plugin']['authmysql']['getUsers']    = "SELECT DISTINCT account AS user                                               FROM zt_user AS u                                               LEFT JOIN zt_usergroup AS ug ON u.account=ug.account                                               LEFT JOIN zt_group AS g ON ug.group=g.id";$conf['plugin']['authmysql']['FilterLogin'] = "account LIKE '%{user}'";$conf['plugin']['authmysql']['FilterName']  = "realname LIKE '%{name}'";$conf['plugin']['authmysql']['FilterEmail'] = "email LIKE '%{email}'";$conf['plugin']['authmysql']['FilterGroup'] = "name LIKE '%{group}'";$conf['plugin']['authmysql']['SortOrder']   = "ORDER BY login";/***********************************************************************//*   Additional SQL statements to add new users with the user manager  *//***********************************************************************//* This statement should add a user to the database. Minimum information * to store are: login name, password, email address and full name. * * Following patterns will be replaced: *   %{user}    user's login name *   %{pass}    password (encrypted or clear text, depends on 'encryptPass') *   %{email}   email address *   %{name}    user's full name */$conf['plugin']['authmysql']['addUser']     = "";/* This statement should add a group to the database. * Following patterns will be replaced: *   %{group}   group name */$conf['plugin']['authmysql']['addGroup']    = "";/* This statement should connect a user to a group (a user become member * of that group). * Following patterns will be replaced: *   %{user}    user's login name *   %{uid}     id of a user dataset *   %{group}   group
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
久久久www成人免费精品张筱雨| 成人午夜在线影院| 国产精品白丝av嫩草影院| 亚洲精品一区二三区不卡| 成人黄色中文字幕| 国产日本欧美视频| 亚洲精品一区二区在线| 久久久最新网址| 最近2019中文字幕在线高清| 久久久久久久久久婷婷| 2019中文字幕全在线观看| 狠狠久久五月精品中文字幕| 欧美超级免费视 在线| 国产精品专区h在线观看| 日韩在线免费av| 欧美丝袜一区二区三区| 欧美极品少妇xxxxⅹ裸体艺术| 亚洲欧美日韩一区在线| 色与欲影视天天看综合网| 国产免费亚洲高清| 九九久久久久99精品| 欧美激情xxxxx| 成人黄色激情网| 91在线无精精品一区二区| 性欧美亚洲xxxx乳在线观看| 亚洲国产美女久久久久| 麻豆国产va免费精品高清在线| 日韩黄在线观看| 国产欧美在线视频| 日韩亚洲欧美中文在线| 欧美日韩国产综合新一区| 欧美中文字幕第一页| 98精品国产自产在线观看| 最近2019中文字幕第三页视频| 国产精品久久久久免费a∨大胸| 久久激情五月丁香伊人| 欧美性猛交丰臀xxxxx网站| 国产91在线播放精品91| 日韩精品在线免费观看| 日本精品久久久久久久| 国内精品国产三级国产在线专| 欧美国产极速在线| 亚洲精品自拍视频| 在线视频欧美日韩精品| 精品国产一区二区在线| 在线亚洲欧美视频| 色中色综合影院手机版在线观看| 国产精品吊钟奶在线| 色悠悠久久久久| 国产成人一区二区三区小说| 日韩欧美精品网站| 欧美激情精品久久久久久黑人| 韩国三级电影久久久久久| 欧美性videos高清精品| 另类专区欧美制服同性| 亚洲国产精品久久久| 国产98色在线| 日韩欧美一区视频| 国产日韩中文字幕在线| 国产精品女人网站| 亚洲欧美一区二区三区久久| 亚洲精品aⅴ中文字幕乱码| 欧美在线一区二区视频| 国产精品第3页| 中文字幕亚洲欧美一区二区三区| 亚洲字幕在线观看| 欧美中在线观看| 中文字幕亚洲欧美在线| 国产视频亚洲视频| 精品国产乱码久久久久久虫虫漫画| 美女黄色丝袜一区| 日韩成人黄色av| 性色av一区二区三区在线观看| 日韩精品在线免费观看| 国产在线拍偷自揄拍精品| 国产99久久久欧美黑人| 久久精品精品电影网| 日韩欧美在线字幕| 欧美巨乳美女视频| 国产福利视频一区二区| 国产欧美日韩免费看aⅴ视频| 久久av资源网站| 欧美精品18videos性欧| 伊人久久久久久久久久久久久| 91综合免费在线| 国产成人精品电影| 国产精品女主播视频| 日韩一级裸体免费视频| 国产精品wwww| 91精品久久久久久综合乱菊| 亚洲一区二区自拍| 欧美日韩xxxxx| 亚洲天堂成人在线| 成人黄色免费在线观看| 久久久久久69| 青草热久免费精品视频| 成人精品一区二区三区| 国产一区二区黑人欧美xxxx| 一区二区三区久久精品| 欧美大秀在线观看| 久久久久日韩精品久久久男男| 亚洲国产精品成人va在线观看| 高清视频欧美一级| 国产在线精品播放| 亚洲欧美色婷婷| 亚洲第一福利网| 国产日本欧美一区二区三区在线| 亚洲视频日韩精品| 亚洲老头老太hd| 精品视频久久久| 亚洲欧美国产视频| 色yeye香蕉凹凸一区二区av| 国产精品久久久久999| 在线电影欧美日韩一区二区私密| 亚洲a在线观看| 欧美日韩亚洲一区二| 国产亚洲视频中文字幕视频| 国产精品午夜视频| 国产精品白丝av嫩草影院| 日韩av片免费在线观看| 久久中文字幕视频| 欧美一区三区三区高中清蜜桃| 色哟哟网站入口亚洲精品| 日韩av在线免费观看一区| 成人国内精品久久久久一区| 亚洲三级 欧美三级| 亚洲国产成人精品久久久国产成人一区| 亚洲中国色老太| 亚洲sss综合天堂久久| 亚洲伊人久久大香线蕉av| 欧美福利小视频| 久久久久在线观看| 亚洲精品白浆高清久久久久久| 伊人久久精品视频| 亚洲天堂2020| 亚洲精品国产品国语在线| 欧美激情国产精品| 欧美特黄级在线| 欧美高清一级大片| 欧美激情网友自拍| 国产精品久久久久久久av电影| 亚洲美女又黄又爽在线观看| 亚洲色无码播放| 亚洲第一男人天堂| 亚洲国产成人在线播放| 亚洲精品久久久久久久久久久| 国产精品高清免费在线观看| 成人免费高清完整版在线观看| 亚洲一区二区三区四区视频| 日韩在线观看免费全集电视剧网站| 欧美日韩性视频| 97国产suv精品一区二区62| 久久91亚洲精品中文字幕| 日韩av免费在线播放| 欧美日韩另类视频| 国产精品无av码在线观看| 18一19gay欧美视频网站| 亚洲老板91色精品久久| 成人免费视频xnxx.com| 国产一区二区三区日韩欧美| 欧美高跟鞋交xxxxhd| 久久99国产精品久久久久久久久| 亚洲欧洲一区二区三区在线观看| 国产精品视频网站|