-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.sample.php
More file actions
23 lines (19 loc) · 821 Bytes
/
Copy pathconfig.sample.php
File metadata and controls
23 lines (19 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
DEFINE("debug", true);
DEFINE("db_host", "localhost");
DEFINE("db_name", "database");
DEFINE("db_username", "username");
DEFINE("db_password", "password");
DEFINE("site_name", "Utility Readings");
DEFINE("reset_url", null); // where you want to redirect users to reset their LDAP password
# LDAP OPTIONS
define("LDAP_ENABLE", true); //default: true
define("LDAP_SERVER", "server-IP");
define("LDAP_PORT", 389);
define("LDAP_STARTTLS", false); //default: false
define("LDAP_BIND_DN", "CN=some,OU=where,DC=ox,DC=ac,DC=uk");
define("LDAP_BASE_DN", "DC=ox,DC=ac,DC=uk");
define("LDAP_BIND_PASSWORD", "ldap-password");
define("LDAP_ACCOUNT_SUFFIX", "@somewhere.ox.ac.uk");
define("LDAP_ALLOWED_DN", 'CN=Group,DC=ox,DC=ac,DC=uk'); // which LDAP group is allowed to log in to the system for administrative purposes
?>