コミットメタ情報

リビジョン105133b9f31647a6178c38aa8dfe2e7472029765 (tree)
日時2016-02-02 08:18:56
作者umorigu <umorigu@gmai...>
コミッターumorigu

ログメッセージ

sample conf

変更サマリ

差分

--- a/pukiwiki.ini.php
+++ b/pukiwiki.ini.php
@@ -70,7 +70,9 @@ define('UI_LANG', LANG); // 'en' for Internationalized wikisite
7070 // You may hide these directories (from web browsers)
7171 // by setting DATA_HOME at index.php.
7272
73-define('DATA_DIR', DATA_HOME . 'wiki/' ); // Latest wiki texts
73+// define('DATA_DIR', DATA_HOME . 'wiki/' ); // Latest wiki texts
74+define('DATA_DIR', DATA_HOME . '../pukiwiki-HEAD_utf8/wiki/' ); // Latest wiki texts
75+
7476 define('DIFF_DIR', DATA_HOME . 'diff/' ); // Latest diffs
7577 define('BACKUP_DIR', DATA_HOME . 'backup/' ); // Backups
7678 define('CACHE_DIR', DATA_HOME . 'cache/' ); // Some sort of caches
@@ -220,6 +222,9 @@ $pagereading_config_dict = ':config/PageReading/dict';
220222 $auth_users = array(
221223 // Username => password
222224 'foo' => 'foo_passwd', // Cleartext
225+ 'usera' => 'usera',
226+ 'userb' => 'userb',
227+ 'userc' => 'userc',
223228 'bar' => '{x-php-md5}f53ae779077e987718cc285b14dfbe86', // PHP md5() 'bar_passwd'
224229 'hoge' => '{SMD5}OzJo/boHwM4q5R+g7LCOx2xGMkFKRVEx', // LDAP SMD5 'hoge_passwd'
225230 );
@@ -236,7 +241,7 @@ $auth_groups = array(
236241 /////////////////////////////////////////////////
237242 // Authentication type
238243 // AUTH_TYPE_FORM, AUTH_TYPE_BASIC or AUTH_TYPE_EXTERNAL
239-// $auth_type = AUTH_TYPE_FORM;
244+$auth_type = AUTH_TYPE_FORM;
240245 // $auth_external_login_url_base = './exlogin.php';
241246
242247 /////////////////////////////////////////////////
@@ -247,23 +252,23 @@ $auth_method_type = 'pagename'; // By Page name
247252
248253 /////////////////////////////////////////////////
249254 // Read auth (0:Disable, 1:Enable)
250-$read_auth = 0;
255+$read_auth = 1;
251256
252257 $read_auth_pages = array(
253258 // Regex Groupname or Username
254259 '#PageForAllValidUsers#' => 'valid-user',
255- '#HogeHoge#' => 'hoge',
260+ '#HogeHoge#' => 'hoge,usera,userb,valid-user',
256261 '#(NETABARE|NetaBare)#' => 'foo,bar,hoge',
257262 );
258263
259264 /////////////////////////////////////////////////
260265 // Edit auth (0:Disable, 1:Enable)
261-$edit_auth = 0;
266+$edit_auth = 1;
262267
263268 $edit_auth_pages = array(
264269 // Regex Username
265270 '#BarDiary#' => 'bar',
266- '#HogeHoge#' => 'hoge',
271+ '#HogeHoge#' => 'hoge,usera,userb,valid-user',
267272 '#(NETABARE|NetaBare)#' => 'foo,bar,hoge',
268273 );
269274
@@ -275,14 +280,12 @@ $search_auth = 0;
275280
276281 /////////////////////////////////////////////////
277282 // LDAP
278-$ldap_user_account = 0;
279-// $ldap_user_account = 1; // (0: Disabled, 1: Enabled)
280-// $ldap_url = 'ldap://ldapserver:389/ou=Users,dc=ldap,dc=example,dc=com';
281-// $ldap_bind_dn = '';
282-// $ldap_bind_password = '';
283+$ldap_user_account = 1; // (0: Disabled, 1: Enabled)
284+$ldap_url = 'ldap://ldap.forumsys.com:389/dc=example,dc=com';
285+$ldap_bind_dn = 'cn=read-only-admin,dc=example,dc=com';
286+$ldap_bind_password = 'password';
287+
283288
284-/////////////////////////////////////////////////
285-// User prefix that shows its auth provider
286289 define('AUTH_PROVIDER_USER_PREFIX_DEFAULT', 'default:');
287290 define('AUTH_PROVIDER_USER_PREFIX_LDAP', 'ldap:');
288291 define('AUTH_PROVIDER_USER_PREFIX_EXTERNAL', 'external:');
@@ -324,7 +327,7 @@ $do_backup = 1;
324327 $del_backup = 0;
325328
326329 // Bacukp interval and generation
327-$cycle = 3; // Wait N hours between backup (0 = no wait)
330+$cycle = 0; // Wait N hours between backup (0 = no wait)
328331 $maxage = 120; // Stock latest N backups
329332
330333 // NOTE: $cycle x $maxage / 24 = Minimum days to lost your data
旧リポジトリブラウザで表示