r2666 - introduced LDAPCache table (ticket:193)
[racktables] / local / secret-sample.php
CommitLineData
b325120a 1<?php
e673ee24
DO
2/*
3*
32de4069 4* RackTables secrets are here
e673ee24
DO
5*
6*/
7
8$pdo_dsn = 'mysql:host=localhost;dbname=racktables';
9$db_username = 'username';
10$db_password = 'password';
11
204284ba
DO
12// More info: http://racktables.org/trac/wiki/RackTablesUserAuthentication
13$user_auth_src = 'database';
14$require_valid_user = TRUE;
120e9ddd 15
204284ba 16// This is only necessary for 'ldap' authentication source
32de4069
DO
17$ldap_server = 'some.server';
18$ldap_domain = 'some.domain';
19
b65a6d51
DO
20#$ldap_search_dn = 'ou=people,O=YourCompany';
21$ldap_search_attr = 'uid';
22
9133d2c5
DO
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
e673ee24 33?>