r4073 minor change in UI for recent change: VST form commit on ENTER and hints on...
[racktables] / inc / 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
2c9fde3a
DO
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.
3f4f7de4 15// More info: http://racktables.org/trac/wiki/RackTablesAdminGuide
2c9fde3a
DO
16#$user_auth_src = 'ldap';
17#$require_local_account = FALSE;
120e9ddd 18
204284ba 19// This is only necessary for 'ldap' authentication source
ef44d4a3
DO
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',
b65a6d51 27
9133d2c5 28// LDAP cache, values in seconds. Refresh, retry and expiry values are
ef44d4a3
DO
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.
7c963251
DO
35//
36// Like in DNS, the following condition must be always met:
37// cache_retry <= cache_refresh <= cache_expiry
38//
39// To disable LDAP cache completely, set cache_refresh, cache_retry and
40// cache_expiry to 0.
ef44d4a3
DO
41 'cache_refresh' => 300,
42 'cache_retry' => 15,
43 'cache_expiry' => 600,
a09e3ec7
DO
44// Uncomment line below to work around ActiveDirectory+PHP problem to perform
45// search right in the base DN (not in one of OUs/CNs below).
46# 'options' => array (LDAP_OPT_PROTOCOL_VERSION => 3, LDAP_OPT_REFERRALS => 0),
ef44d4a3 47);
9133d2c5 48
e673ee24 49?>