-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.php.defaults
executable file
·155 lines (116 loc) · 4.91 KB
/
config.php.defaults
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?php
// A list of the domains in the form domain.tld => GO base URl:
// Ex: array(
// 'example.edu' => 'http://go.example.edu/',
// 'example2.edu' => 'http://web.example2.edu/go/',
// );
global $institutions;
$institutions = array(
'example.edu' => array(
'base_uri' => 'http://go.example.edu/',
'logo_html' => '<a href="http://www.example.edu">
<img class="headerLogo" src="http://www.example.edu/logo.gif" alt="Click here to return to Example College home page" />
</a>',
'header' => 'header_file.php',
'footer' => 'footer_file.php',
),
'example2.edu' => array(
'base_uri' => 'http://web.example2.edu/go/',
'logo_html' => '<a href="http://www.example2.edu">
<img class="headerLogo" src="http://www.example2.edu/logo.gif" alt="Click here to return to Example2 College home page" />
</a>',
'header' => 'header_file.php',
'footer' => 'footer_file.php',
),
);
/* DATABASE */
// Database Name
define("GO_DATABASE_NAME", "go");
// Host of the Database server
define("GO_DATABASE_HOST", "database.example.com");
// Username with SELECT, INSERT, UPDATE, and DELETE on the Database
define("GO_DATABASE_USER", "testuser");
// Password for the Database user
define("GO_DATABASE_PASS", "testpassword");
// Authentication method: ldap, cas, or saml
define("AUTH_METHOD", "cas");
/* LDAP AUTHENTICATION */
// CN of a user to do the initial bind
define("GO_AUTH_LDAP_USER", "User, Dummy");
// Password for the LDAP bind user
define("GO_AUTH_LDAP_PASS", "password");
// Host of the LDAP server
define("GO_AUTH_LDAP_HOST", "example.com");
// Port of the LDAP server
define("GO_AUTH_LDAP_PORT", "389");
// LDAP Path in which to search for users
define("GO_AUTH_LDAP_PATH", "DC=example,DC=com");
// LDAP attribute you will use for the internal user ID
define("GO_AUTH_LDAP_ATTR_ID", "cn");
// LDAP attribute you will use for the username
define("GO_AUTH_LDAP_ATTR_NAME", "samaccountname");
// LDAP attribute you will use for the email
define("GO_AUTH_LDAP_ATTR_EMAIL", "mail");
/* CAS AUTHENTICATION */
// Filesystem path to a logging file
define("GO_AUTH_CAS_LOG", "/tmp/go-cas.log");
// Host of CAS server
define("GO_AUTH_CAS_HOST", "login.example.com");
// Port of CAS server
define("GO_AUTH_CAS_PORT", 443);
// Path to CAS login script
define("GO_AUTH_CAS_PATH", "/cas");
// Path to proxy granting ticket script
define("GO_AUTH_CAS_PGT", "https://go.example.com/storePGT.php");
// Filesystem path to proxy granting ticket store
define("GO_AUTH_CAS_PGTSTORE", "/var/store");
// CAS attribute you will use for the internal user ID
define("GO_AUTH_CAS_ATTR_ID", "Id");
// CAS attribute you will use for the username
define("GO_AUTH_CAS_ATTR_NAME", "Login");
// CAS attribute you will use for the email
define("GO_AUTH_CAS_ATTR_EMAIL", "EMail");
/* SAML AUTHENTICATION */
define("SAML_IDP_ENTITY_ID", "https://sts.windows.net/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/");
define("SAML_IDP_SINGLE_SIGNON_SERVICE_URL", "https://login.microsoftonline.com/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/saml2");
define("SAML_IDP_SINGLE_LOGOUT_SERVICE_URL", "https://login.microsoftonline.com/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/saml2");
define("SAML_IDP_X509_CERT", "");
// Directory lookup configuration: ldap, cas, or microsoft_graph
define('USER_LOOKUP_METHOD', 'cas');
// CAS Directory lookup config
define('DIRECTORY_ADMIN_ACCESS_KEY', 'passphrase');
define('DIRECTORY_BASE_URL', 'https://login.example.edu/directory/');
// Microsoft Graph lookup config
define('MICROSOFT_GRAPH_TENANT_ID', '');
define('MICROSOFT_GRAPH_APP_ID', '');
define('MICROSOFT_GRAPH_APP_SECRET', '');
define('MICROSOFT_GRAPH_UNIQUE_ID_PROPERTY', 'userPrincipalName');
//AD groups allowed to authenticate against GO.
$allowedGroups = array();
//set array $goAdmins that holds the user ids of those
//who should be able to access the admin pages
$goAdmin = array(
);
//users who can view details (history, flags, user-to-code lists).
$goAuditors = array(
);
//allow anonymous user to flag codes as inappropriate (true or false)
define("ANON_FLAGGING", true);
//require a reason be filled in for flagging a code, true or false
define("REASON_FOR_FLAGGING_REQUIRED", true);
//email address that alert emails from the go application will be from
define("GO_ALERTS_EMAIL_ADDRESS", '[email protected]');
//the name that alert emails from the go application will be from
define("GO_ALERTS_EMAIL_NAME", 'example name');
//takes 'all', 'authenticated', or 'superadmin'. Will allow anyone
//only authenticated users, or only superadmins to hide/show hidden codes respectively
define("GO_SHOW_ALL_CODES_ACCESS", 'superadmin');
//public and private recaptcha keys go here
define("RECAPTCHA_PUBLIC", '');
define("RECAPTCHA_PRIVATE", '');
//array of regex for internal hosts ending with, other hosts will be dealt with as external
$internal_hosts = array(
'#example.edu$#',
);
//HTML for contacting/submitting a request for help with the application
define("GO_HELP_HTML", "<a href='#'>our help area.</a>");