forked from fabianlipp/useradmin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.inc.php.template
More file actions
53 lines (42 loc) · 1.43 KB
/
config.inc.php.template
File metadata and controls
53 lines (42 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
error_reporting(E_ALL);
ini_set('display_errors', 0);
define('BASE_PATH', '/srv/www/htdocs/useradmin/');
define('BASE_IMPRESSUM_LINK', 'http://www.example.com/site.html');
define('LDAP_SERVER', 'ldaps://example.com/');
define('BASE_DN', 'dc=example,dc=com');
define('GROUP_DN', 'ou=Groups,' . BASE_DN);
define('USER_DN', 'ou=People,' . BASE_DN);
define('DUMMY_USER_DN', 'cn=dummy,dc=example,dc=com');
// LDAP objectclass assigned to new users
define('OBJECTCLASS', 'inetOrgPerson');
define('STORE_NTLM_HASH', false);
define('PAGETITLE', 'example.com User Admin');
// Mail configuration
// set MAIL_HOST to use SMTP or don't define it to use mail()
// define('MAIL_HOST', '');
// define('MAIL_PORT', 587);
// define('MAIL_AUTH', true);
// define('MAIL_USERNAME', '');
// define('MAIL_PASSWORD', '');
define('MAIL_SENDER', 'webteam@example.com');
const MAIL_TEMPLATES = array(
'addUser' => array(
array(
'name' => 'Default',
'subject' => 'Your account for example.com',
'file' => 'mail-templates/mail-newuser.tpl'
),
array(
'name' => 'Special Event',
'subject' => 'Your account for example.com',
'file' => 'mail-templates/special-newuser.tpl'
)
)
);
// will be added to the username at login if there is no '=' present
define('LOGIN_DN_PREFIX', 'cn=');
define('LOGIN_DN_SUFFIX', ','.USER_DN);
// define the location of the used libraries (see html_head.inc.php)
define('LIBS_URL', "vendor/");
?>