r2827 - updated URL of Wiki page
[racktables] / inc / secret-sample.php
1 <?php
2 /*
3 *
4 * RackTables secrets are here
5 *
6 */
7
8 $pdo_dsn = 'mysql:host=localhost;dbname=racktables';
9 $db_username = 'username';
10 $db_password = 'password';
11
12 // Default setting is to authenticate users locally, but it is possible to
13 // employ existing LDAP or Apache userbase. Uncommenting below two lines MAY
14 // help in switching authentication to LDAP completely.
15 // More info: http://racktables.org/trac/wiki/RackTablesAdminGuide
16 #$user_auth_src = 'ldap';
17 #$require_local_account = FALSE;
18
19 // This is only necessary for 'ldap' authentication source
20 $LDAP_options = array
21 (
22 'server' => 'some.server',
23 'domain' => 'some.domain',
24 # 'search_dn' => 'ou=people,O=YourCompany',
25 'search_attr' => 'uid',
26 # 'displayname_attrs' => 'givenname familyname',
27
28 // LDAP cache, values in seconds. Refresh, retry and expiry values are
29 // treated exactly as those for DNS SOA record. Example values 300-15-600:
30 // unconditionally remeber successful auth for 5 minutes, after that still
31 // permit user access, but try to revalidate username and password on the
32 // server (not more often, than once in 15 seconds). After 10 minutes of
33 // unsuccessful retries give up and deny access, so someone goes to fix
34 // LDAP server.
35 'cache_refresh' => 300,
36 'cache_retry' => 15,
37 'cache_expiry' => 600,
38 );
39
40 ?>