This repository was archived by the owner on Jan 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.inc.php-sample
More file actions
executable file
·96 lines (86 loc) · 3.7 KB
/
config.inc.php-sample
File metadata and controls
executable file
·96 lines (86 loc) · 3.7 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
define('CDN_BASE', '//cdn.domain.edu/middlebury.edu/2005/2d');
// CAS Login Info
define('CAS_HOST', 'login.middlebury.edu');
define('CAS_PORT', 443);
define('CAS_PATH', '/cas');
define('CAS_SERVICE_URLS', ['https://toboggan.middlebury.edu', 'https://login.middlebury.edu']);
// Define $getUserDisplayName as a custom callback function for accessing the current user's name.
// $getUserDisplayName = create_function('', " return phpCAS::getAttribute('FirstName').' '.phpCAS::getAttribute('LastName');");
// Define a list of attributes which if any are matched, will grant the user access
// to the application.
// Values can be either a single string or an array of strings. If an array, each value
// will be checked separately.
// $authorizedUserAttributes = array(
// 'MemberOf' => 'CN=institution,OU=General,OU=Groups,DC=middlebury,DC=edu',
// );
// Define a list of attributes which if any are matched, will grant the user super-admin
// access to the application.
// Values can be either a single string or an array of strings. If an array, each value
// will be checked separately.
// $superAdminUserAttributes = array(
// 'MemberOf' => array(
// 'CN=ITS Web Applications,OU=General,OU=Groups,DC=middlebury,DC=edu',
// ),
// );
// Define a list of OUs that will not show group membership.
// $excludedOUs = array(
// 'OU=Classes,OU=Groups,DC=middlebury,DC=edu',
// );
// Configure the first LDAP Server.
$ldapConfig = array();
$ldapConfig['LDAPURL'] = 'ldaps://ad.middlebury.edu:636';
$ldapConfig['BindDN'] = 'binduser';
$ldapConfig['BindDNPassword'] = 'bindpassword';
$ldapConfig['BaseDN'] = 'DC=middlebury,DC=edu';
$ldapConfig['UserBaseDN'] = 'DC=middlebury,DC=edu';
$ldapConfig['GroupBaseDN'] = 'OU=Groups,DC=middlebury,DC=edu';
$ldapConfig['WritableGroupContainers'] = array(
'OU=MIDD,OU=web data,DC=middlebury,DC=edu',
'OU=MIIS,OU=web data,DC=middlebury,DC=edu',
);
// This is that attribute in LDAP that maps to the the CAS user id.
$ldapConfig['UserIdAttribute'] = 'middleburyCollegeUID';
// Database PDO connection info for the notification queue.
// This database can be local or remote and does not need to be shared
// between clustered group manager instances as long as each database
// has the notify.php script run against it periodically.
//
// The notify.php script should be run several times per minute to ensure that
// listeners are updated in a timely manner. This can be done with cron entries
// like the following:
//
// * * * * * sudo -u apache php /path/to/group/manager/notify.php
// * * * * * sleep 15; sudo -u apache php /path/to/group/manager/notify.php
// * * * * * sleep 30; sudo -u apache php /path/to/group/manager/notify.php
// * * * * * sleep 45; sudo -u apache php /path/to/group/manager/notify.php
$notify_queue_dsn = 'sqlite:/tmp/group_manager_queue.sq3';
$notify_queue_user = null;
$notify_queue_pass = null;
$notify_queue_options = array();
// How long should we wait for group changes to propagte before firing notifications? (Seconds)
$notify_queue_delay = 15;
// What web-service calls to notify when groups are changed.
$notifyConfig = array(
array( 'URL' => 'http://chisel.middlebury.edu/~afranco/directory/',
'Type' => 'POST',
'GroupParam' => 'group_id',
'OtherParams' => array(
'action' => 'clear_cache',
),
'HttpHeaders' => array(
'ADMIN_ACCESS: abc1234567890',
),
),
array( 'URL' => 'http://chisel.middlebury.edu/~afranco/drupal/',
'Type' => 'GET',
'GroupParam' => 'group_id',
'OtherParams' => array(
'q' => 'casmmsync/update_group',
'passkey' => 'OkCacheCleared',
),
),
);
define('DISPLAY_ERROR_BACKTRACE', false);
define('SHOW_TIMERS', true);
define('SHOW_TIMERS_IN_OUTPUT', false);