r2666 - introduced LDAPCache table (ticket:193)
[racktables] / local / 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 // More info: http://racktables.org/trac/wiki/RackTablesUserAuthentication
13 $user_auth_src = 'database';
14 $require_valid_user = TRUE;
15
16 // This is only necessary for 'ldap' authentication source
17 $ldap_server = 'some.server';
18 $ldap_domain = 'some.domain';
19
20 #$ldap_search_dn = 'ou=people,O=YourCompany';
21 $ldap_search_attr = 'uid';
22
23 // LDAP cache, values in seconds. Refresh, retry and expiry values are
24 // treated exactly as for DNS SOA record.
25 // Unconditionally remeber success for 5 minutes, then contact server, if
26 // possible. If this didn't work for whatever reason, repeat attempts each
27 // 15 seconds. After 10 minutes from the first successful authentication
28 // discard the cache for that user.
29 $ldap_cache_refresh = 300;
30 $ldap_cache_retry = 15;
31 $ldap_cache_expiry = 600;
32
33 ?>