質問箱/3417
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
**[[質問箱/3417]] [#s04a05e5]
|RIGHT:70|LEFT:410|c
|~カテゴリ||
|~サマリ|ページごとにユーザに対して閲覧・編集を許可する方...
|~バージョン|1.4.6|
|~投稿者|[[べるの]]|
|~状態|完了|
|~投稿日|&new{2006-05-22 (月) 17:38:44};|
***質問 [#jb713677]
PukiWikiの閲覧・編集の制限について調べておりますが、不明...
やりたいことは
userA・・・閲覧専用ユーザ
userB・・・グループB
userC・・・グループC
userD・・・管理者
に対して
hoge1/hoge2/hogeB(userAに閲覧許可、userBとuserDに閲覧...
hoge1/hoge2/hogeC(userAに閲覧許可、userCとuserDに閲覧...
hoge1/hoge2/hogeD(userAに閲覧許可、userDに閲覧・編集を...
その他のページは、全てのユーザに閲覧を許可
をやりたいのですが、「pukiwiki.ini.php」の
「Read auth regex」と「Edit auth regex」を編集して試して...
そこで、これを実現させるためには、制限ページの正規表現を...
***回答 [#f9b0a579]
- 実現可能です。質問文からでは何につまづいているのか解ら...
- 回答、ありがとうございます。 -- [[べるの]] &new{2006-05...
私が試した設定です。閲覧制限から試しています。
-pukiwiki.ini.php
$auth_users
'userA' => '{x-php-md5}passwd', //管理者
'userB' => '{x-php-md5}passwd', //グループA
'userC' => '{x-php-md5}passwd', //グループB
'userD' => '{x-php-md5}passwd', //閲覧専用
$auth_method_type = 'pagename'; // By Page name
$read_auth = 1;
$read_auth_pages
'#^page1.*$#' => 'userA,userB',
'#^page2.*$#' => 'userA,userC',
'#^page3.*#' => 'userA,userD',
'#^.*$#' => 'userA,userB,userC,userD',
-ページ構成
hoge1/hoge2/page1(管理者とグループAのユーザに閲覧を許可)
hoge1/hoge2/page1/page1 Contact Box(管理者とグループAの...
hoge1/hoge2/page2(管理者とグループBのユーザに閲覧を許可)
hoge1/hoge2/page2/page2 Contact Box(管理者とグループBの...
page3/(管理者と閲覧専用のユーザに閲覧を許可)
page3/page3 Contact Box(管理者と閲覧専用のユーザに閲覧...
上記のように設定を行い、私の認識だと「userB」が「page2」...
Basic認証のダイアログが表示されると思っていたのですが、表...
できてしまいます。
制限ページ名の正規表現に「.*」を使用しているのは、「page1...
作成するときに、「page1 ・・・」のように先頭に必ず「page1...
して、「page1」以下の子ページ全てを制限したいと考えたから...
どのあたりが間違っているのか、ご教授お願いいたします。
- 追記です。 -- [[べるの]] &new{2006-05-23 (火) 17:30:59};
$edit_auth = 1;
$edit_auth_pages
'#^.*$#' => 'userA',
'#^page1.*$#' => 'userA, userB',
'#^page2.*$#' => 'userA, userC',
書き込み制限は、上記設定により実現することができました。...
- 先頭に必ず「page1」? ページ構成では「hoge1」になってい...
- ご指摘ありがとうございます。メソッドタイプが「pagename...
- $read_auth_pagesの'#^.*$#' => 'userA,userB,userC,userD...
-- 正規表現が保障するのは「'#^.*$#'」が全ての文字列にマッ...
- まず、用語の問題で行き違いがあるようです。「$pagename」...
- で、上で書いたように$read_auth_pagesの内容は全要素のOR...
- ご指摘ありがとうございます。「'#^(?!(AAA|BBB|CCC)).#'」...
- 「ページパス」→NG、「フルパス」→OKのご指摘ありがとうご...
- 秀丸で検索・置換に正規表現を利用していたので、少し知識...
- まとめです。 -- [[べるの]] &new{2006-05-24 (水) 13:12:2...
~以下、まとめです。
-実現したこと
--ページ構成
---hoge1/hoge2/page1(管理者とグループAのユーザに閲覧を許...
---hoge1/hoge2/page1/page1 Contact Box(管理者とグループA...
---hoge1/hoge2/page2(管理者とグループBのユーザに閲覧を許...
---hoge1/hoge2/page2/page2 Contact Box(管理者とグループB...
---page3/(管理者と閲覧専用のユーザに閲覧を許可)
---page3/page3 Contact Box(管理者と閲覧専用のユーザに閲...
---その他のページは、全てのユーザに閲覧を許可
-設定
--pukiwiki.ini.php
// User definition
$auth_users =
'userA' => '{x-php-md5}passwd', //管理者
'userB' => '{x-php-md5}passwd', //グループA
'userC' => '{x-php-md5}passwd', //グループB
'userD' => '{x-php-md5}passwd', //閲覧専用
// Authentication method
$auth_method_type = 'pagename'; // By Page name
// Read auth (0:Disable, 1:Enable)
$read_auth = 1;
// Read auth regex
$read_auth_pages = array(
'#^hoge1/hoge2/page1#' => 'userA,userB',
'#^hoge1/hoge2/page2#' => 'userA,userB',
'#^page3#' => 'userA,userD',
'#^(?!(hoge1/hoge2/page1|hoge1/hoge2/page2|page3)).#'...
// Edit auth (0:Disable, 1:Enable)
$edit_auth = 1;
// Edit auth regex
$edit_auth_pages = array(
'#^.*$#' => 'userA',
'#^hoge1/hoge2/page1#' => 'userA,userB',
'#^hoge1/hoge2/page2#' => 'userA,userC',
以上
~正規表現がどのように評価されるか掴めましたので、正規表現...
//#comment
終了行:
**[[質問箱/3417]] [#s04a05e5]
|RIGHT:70|LEFT:410|c
|~カテゴリ||
|~サマリ|ページごとにユーザに対して閲覧・編集を許可する方...
|~バージョン|1.4.6|
|~投稿者|[[べるの]]|
|~状態|完了|
|~投稿日|&new{2006-05-22 (月) 17:38:44};|
***質問 [#jb713677]
PukiWikiの閲覧・編集の制限について調べておりますが、不明...
やりたいことは
userA・・・閲覧専用ユーザ
userB・・・グループB
userC・・・グループC
userD・・・管理者
に対して
hoge1/hoge2/hogeB(userAに閲覧許可、userBとuserDに閲覧...
hoge1/hoge2/hogeC(userAに閲覧許可、userCとuserDに閲覧...
hoge1/hoge2/hogeD(userAに閲覧許可、userDに閲覧・編集を...
その他のページは、全てのユーザに閲覧を許可
をやりたいのですが、「pukiwiki.ini.php」の
「Read auth regex」と「Edit auth regex」を編集して試して...
そこで、これを実現させるためには、制限ページの正規表現を...
***回答 [#f9b0a579]
- 実現可能です。質問文からでは何につまづいているのか解ら...
- 回答、ありがとうございます。 -- [[べるの]] &new{2006-05...
私が試した設定です。閲覧制限から試しています。
-pukiwiki.ini.php
$auth_users
'userA' => '{x-php-md5}passwd', //管理者
'userB' => '{x-php-md5}passwd', //グループA
'userC' => '{x-php-md5}passwd', //グループB
'userD' => '{x-php-md5}passwd', //閲覧専用
$auth_method_type = 'pagename'; // By Page name
$read_auth = 1;
$read_auth_pages
'#^page1.*$#' => 'userA,userB',
'#^page2.*$#' => 'userA,userC',
'#^page3.*#' => 'userA,userD',
'#^.*$#' => 'userA,userB,userC,userD',
-ページ構成
hoge1/hoge2/page1(管理者とグループAのユーザに閲覧を許可)
hoge1/hoge2/page1/page1 Contact Box(管理者とグループAの...
hoge1/hoge2/page2(管理者とグループBのユーザに閲覧を許可)
hoge1/hoge2/page2/page2 Contact Box(管理者とグループBの...
page3/(管理者と閲覧専用のユーザに閲覧を許可)
page3/page3 Contact Box(管理者と閲覧専用のユーザに閲覧...
上記のように設定を行い、私の認識だと「userB」が「page2」...
Basic認証のダイアログが表示されると思っていたのですが、表...
できてしまいます。
制限ページ名の正規表現に「.*」を使用しているのは、「page1...
作成するときに、「page1 ・・・」のように先頭に必ず「page1...
して、「page1」以下の子ページ全てを制限したいと考えたから...
どのあたりが間違っているのか、ご教授お願いいたします。
- 追記です。 -- [[べるの]] &new{2006-05-23 (火) 17:30:59};
$edit_auth = 1;
$edit_auth_pages
'#^.*$#' => 'userA',
'#^page1.*$#' => 'userA, userB',
'#^page2.*$#' => 'userA, userC',
書き込み制限は、上記設定により実現することができました。...
- 先頭に必ず「page1」? ページ構成では「hoge1」になってい...
- ご指摘ありがとうございます。メソッドタイプが「pagename...
- $read_auth_pagesの'#^.*$#' => 'userA,userB,userC,userD...
-- 正規表現が保障するのは「'#^.*$#'」が全ての文字列にマッ...
- まず、用語の問題で行き違いがあるようです。「$pagename」...
- で、上で書いたように$read_auth_pagesの内容は全要素のOR...
- ご指摘ありがとうございます。「'#^(?!(AAA|BBB|CCC)).#'」...
- 「ページパス」→NG、「フルパス」→OKのご指摘ありがとうご...
- 秀丸で検索・置換に正規表現を利用していたので、少し知識...
- まとめです。 -- [[べるの]] &new{2006-05-24 (水) 13:12:2...
~以下、まとめです。
-実現したこと
--ページ構成
---hoge1/hoge2/page1(管理者とグループAのユーザに閲覧を許...
---hoge1/hoge2/page1/page1 Contact Box(管理者とグループA...
---hoge1/hoge2/page2(管理者とグループBのユーザに閲覧を許...
---hoge1/hoge2/page2/page2 Contact Box(管理者とグループB...
---page3/(管理者と閲覧専用のユーザに閲覧を許可)
---page3/page3 Contact Box(管理者と閲覧専用のユーザに閲...
---その他のページは、全てのユーザに閲覧を許可
-設定
--pukiwiki.ini.php
// User definition
$auth_users =
'userA' => '{x-php-md5}passwd', //管理者
'userB' => '{x-php-md5}passwd', //グループA
'userC' => '{x-php-md5}passwd', //グループB
'userD' => '{x-php-md5}passwd', //閲覧専用
// Authentication method
$auth_method_type = 'pagename'; // By Page name
// Read auth (0:Disable, 1:Enable)
$read_auth = 1;
// Read auth regex
$read_auth_pages = array(
'#^hoge1/hoge2/page1#' => 'userA,userB',
'#^hoge1/hoge2/page2#' => 'userA,userB',
'#^page3#' => 'userA,userD',
'#^(?!(hoge1/hoge2/page1|hoge1/hoge2/page2|page3)).#'...
// Edit auth (0:Disable, 1:Enable)
$edit_auth = 1;
// Edit auth regex
$edit_auth_pages = array(
'#^.*$#' => 'userA',
'#^hoge1/hoge2/page1#' => 'userA,userB',
'#^hoge1/hoge2/page2#' => 'userA,userC',
以上
~正規表現がどのように評価されるか掴めましたので、正規表現...
//#comment
ページ名: