Subversion Repositories oidplus

Rev

Rev 1041 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1041 Rev 1050
1
 
1
 
2
OVERVIEW OF ALL CONFIG.INC.PHP SETTINGS
2
OVERVIEW OF ALL CONFIG.INC.PHP SETTINGS
3
=======================================
3
=======================================
4
 
4
 
5
The file userdata/baseconfig/config.inc.php contains various settings
5
The file userdata/baseconfig/config.inc.php contains various settings
6
which are essential to connect to your database and other
6
which are essential to connect to your database and other
7
things that should be known before the database connection
7
things that should be known before the database connection
8
is opened.
8
is opened.
9
Other settings are stored in the database (table "config")
9
Other settings are stored in the database (table "config")
10
and can be accessed using the admin login area.
10
and can be accessed using the admin login area.
11
 
11
 
12
The setup assistant (/setup/) will lead you through
12
The setup assistant (/setup/) will lead you through
13
the creation of the most important settings of config.inc.php.
13
the creation of the most important settings of config.inc.php.
14
 
14
 
15
Below you will find a list of all possible config settings
15
Below you will find a list of all possible config settings
16
of the default OIDplus installation/plugins.
16
of the default OIDplus installation/plugins.
17
Please note that a plugin can define any key.
17
Please note that a plugin can define any key.
18
 
18
 
19
 
19
 
20
-------------------------------------
20
-------------------------------------
21
(1) CONFIG SETTINGS PROVIDED BY SETUP
21
(1) CONFIG SETTINGS PROVIDED BY SETUP
22
-------------------------------------
22
-------------------------------------
23
 
23
 
24
OIDplus::baseConfig()->setValue('CONFIG_VERSION',           2.1);
24
OIDplus::baseConfig()->setValue('CONFIG_VERSION',           2.1);
25
 
25
 
26
OIDplus::baseConfig()->setValue('ADMIN_PASSWORD',           '<BCrypt hash, or base64 encoded SHA3-512 hash>');
26
OIDplus::baseConfig()->setValue('ADMIN_PASSWORD',           '<BCrypt hash, or base64 encoded SHA3-512 hash>');
27
                         If you want to have multiple valid administrator passwords
27
                         If you want to have multiple valid administrator passwords
28
                         (e.g. if you want multiple users), then this value can
28
                         (e.g. if you want multiple users), then this value can
29
                         also be an array containing hashes.
29
                         also be an array containing hashes.
30
 
30
 
31
OIDplus::baseConfig()->setValue('DATABASE_PLUGIN',          '');
31
OIDplus::baseConfig()->setValue('DATABASE_PLUGIN',          '');
32
                         Valid values: see plugins (setup/)
32
                         Valid values: see plugins (setup/)
33
 
33
 
34
OIDplus::baseConfig()->setValue('OCI_CONN_STR',             'localhost/orcl');
34
OIDplus::baseConfig()->setValue('OCI_CONN_STR',             'localhost/orcl');
35
                         Can be a Oracle connection string/TNS or a hostname like
35
                         Can be a Oracle connection string/TNS or a hostname like
36
 
36
 
37
OIDplus::baseConfig()->setValue('OCI_USERNAME',             'hr');
37
OIDplus::baseConfig()->setValue('OCI_USERNAME',             'hr');
38
 
38
 
39
OIDplus::baseConfig()->setValue('OCI_PASSWORD',             'oracle');
39
OIDplus::baseConfig()->setValue('OCI_PASSWORD',             'oracle');
40
 
40
 
41
OIDplus::baseConfig()->setValue('ODBC_DSN',                 'DRIVER={SQL Server};SERVER=localhost;DATABASE=oidplus;CHARSET=UTF8');
41
OIDplus::baseConfig()->setValue('ODBC_DSN',                 'DRIVER={SQL Server};SERVER=localhost;DATABASE=oidplus;CHARSET=UTF8');
42
 
42
 
43
OIDplus::baseConfig()->setValue('ODBC_USERNAME',            'sa');
43
OIDplus::baseConfig()->setValue('ODBC_USERNAME',            'sa');
44
 
44
 
45
OIDplus::baseConfig()->setValue('ODBC_PASSWORD',            base64_decode('<base64_encoded_password>')); // alternatively as plaintext
45
OIDplus::baseConfig()->setValue('ODBC_PASSWORD',            base64_decode('<base64_encoded_password>')); // alternatively as plaintext
46
                         The base64 encoding protects your password from being read if someone
46
                         The base64 encoding protects your password from being read if someone
47
                         "looks over your shoulder" at your display while you have the configuration file opened.
47
                         "looks over your shoulder" at your display while you have the configuration file opened.
48
                         (Obviously, it doesn't protect you if they can make a photo or screenshot)
48
                         (Obviously, it doesn't protect you if they can make a photo or screenshot)
49
 
49
 
50
OIDplus::baseConfig()->setValue('PDO_DSN',                  'pgsql:host=localhost;dbname=oidplus');
50
OIDplus::baseConfig()->setValue('PDO_DSN',                  'pgsql:host=localhost;dbname=oidplus');
51
 
51
 
52
OIDplus::baseConfig()->setValue('PDO_USERNAME',             'postgres');
52
OIDplus::baseConfig()->setValue('PDO_USERNAME',             'postgres');
53
 
53
 
54
OIDplus::baseConfig()->setValue('PDO_PASSWORD',             base64_decode('<base64_encoded_password>')); // alternatively as plaintext
54
OIDplus::baseConfig()->setValue('PDO_PASSWORD',             base64_decode('<base64_encoded_password>')); // alternatively as plaintext
55
                         The base64 encoding protects your password from being read if someone
55
                         The base64 encoding protects your password from being read if someone
56
                         "looks over your shoulder" at your display while you have the configuration file opened.
56
                         "looks over your shoulder" at your display while you have the configuration file opened.
57
                         (Obviously, it doesn't protect you if they can make a photo or screenshot)
57
                         (Obviously, it doesn't protect you if they can make a photo or screenshot)
58
 
58
 
59
OIDplus::baseConfig()->setValue('MYSQL_HOST',               'localhost:3306');
59
OIDplus::baseConfig()->setValue('MYSQL_HOST',               'localhost:3306');
60
                         The hostname to connect to. Port (:3306) is optional.
60
                         The hostname to connect to. Port (:3306) is optional.
61
 
61
 
62
OIDplus::baseConfig()->setValue('MYSQL_SOCKET',             '');
62
OIDplus::baseConfig()->setValue('MYSQL_SOCKET',             '');
63
                         In case you connect via MySQL through a socket, use this setting.
63
                         In case you connect via MySQL through a socket, use this setting.
64
                         (It is currently not included in setup/ and needs to be set manually).
64
                         (It is currently not included in setup/ and needs to be set manually).
65
 
65
 
66
OIDplus::baseConfig()->setValue('MYSQL_USERNAME',           'root');
66
OIDplus::baseConfig()->setValue('MYSQL_USERNAME',           'root');
67
 
67
 
68
OIDplus::baseConfig()->setValue('MYSQL_PASSWORD',           base64_decode('<base64_encoded_password>')); // alternatively as plaintext
68
OIDplus::baseConfig()->setValue('MYSQL_PASSWORD',           base64_decode('<base64_encoded_password>')); // alternatively as plaintext
69
                         The base64 encoding protects your password from being read if someone
69
                         The base64 encoding protects your password from being read if someone
70
                         "looks over your shoulder" at your display while you have the configuration file opened.
70
                         "looks over your shoulder" at your display while you have the configuration file opened.
71
                         (Obviously, it doesn't protect you if they can make a photo or screenshot)
71
                         (Obviously, it doesn't protect you if they can make a photo or screenshot)
72
 
72
 
73
OIDplus::baseConfig()->setValue('MYSQL_DATABASE',           'oidplus');
73
OIDplus::baseConfig()->setValue('MYSQL_DATABASE',           'oidplus');
74
 
74
 
75
OIDplus::baseConfig()->setValue('PGSQL_HOST',               'localhost:5432');
75
OIDplus::baseConfig()->setValue('PGSQL_HOST',               'localhost:5432');
76
                         The hostname to connect to. Port (:5432) is optional.
76
                         The hostname to connect to. Port (:5432) is optional.
77
 
77
 
78
OIDplus::baseConfig()->setValue('PGSQL_SOCKET',             '');
78
OIDplus::baseConfig()->setValue('PGSQL_SOCKET',             '');
79
                         In case you connect via PostgreSQL through a socket, use this setting.
79
                         In case you connect via PostgreSQL through a socket, use this setting.
80
                         (It is currently not included in setup/ and needs to be set manually).
80
                         (It is currently not included in setup/ and needs to be set manually).
81
 
81
 
82
OIDplus::baseConfig()->setValue('PGSQL_USERNAME',           'postgres');
82
OIDplus::baseConfig()->setValue('PGSQL_USERNAME',           'postgres');
83
 
83
 
84
OIDplus::baseConfig()->setValue('PGSQL_PASSWORD',           base64_decode('<base64_encoded_password>')); // alternatively as plaintext
84
OIDplus::baseConfig()->setValue('PGSQL_PASSWORD',           base64_decode('<base64_encoded_password>')); // alternatively as plaintext
85
                         The base64 encoding protects your password from being read if someone
85
                         The base64 encoding protects your password from being read if someone
86
                         "looks over your shoulder" at your display while you have the configuration file opened.
86
                         "looks over your shoulder" at your display while you have the configuration file opened.
87
                         (Obviously, it doesn't protect you if they can make a photo or screenshot)
87
                         (Obviously, it doesn't protect you if they can make a photo or screenshot)
88
 
88
 
89
OIDplus::baseConfig()->setValue('PGSQL_DATABASE',           'oidplus');
89
OIDplus::baseConfig()->setValue('PGSQL_DATABASE',           'oidplus');
90
 
90
 
91
 
91
 
92
OIDplus::baseConfig()->setValue('SQLITE3_FILE',             'userdata/database/oidplus.db');
92
OIDplus::baseConfig()->setValue('SQLITE3_FILE',             'userdata/database/oidplus.db');
93
                         Attention: This file must be located in a location that is not world-readable/downloadable!
93
                         Attention: This file must be located in a location that is not world-readable/downloadable!
94
 
94
 
95
OIDplus::baseConfig()->setValue('SQLITE3_ENCRYPTION',       '');
95
OIDplus::baseConfig()->setValue('SQLITE3_ENCRYPTION',       '');
96
                         Optional encryption
96
                         Optional encryption
97
 
97
 
98
OIDplus::baseConfig()->setValue('TABLENAME_PREFIX',         'oidplus_');
98
OIDplus::baseConfig()->setValue('TABLENAME_PREFIX',         'oidplus_');
99
 
99
 
100
OIDplus::baseConfig()->setValue('SERVER_SECRET',            'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
100
OIDplus::baseConfig()->setValue('SERVER_SECRET',            'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
101
                         It is very very important that you choose a long sequence of
101
                         It is very very important that you choose a long sequence of
102
                         random characters. OIDplus uses this secret for various
102
                         random characters. OIDplus uses this secret for various
103
                         security related purposes. If someone accidently received this secret,
103
                         security related purposes. If someone accidently received this secret,
104
                         please change the sequence.
104
                         please change the sequence.
105
 
105
 
106
OIDplus::baseConfig()->setValue('CAPTCHA_PLUGIN',           'None');
106
OIDplus::baseConfig()->setValue('CAPTCHA_PLUGIN',           'None');
107
			Alternative Values (installed plugins)
107
			Alternative Values (installed plugins)
108
			- reCAPTCHA
108
			- reCAPTCHA
109
			- hCaptcha
109
			- hCaptcha
110
			- ViaThinkSoft Client Challenge
110
			- ViaThinkSoft Client Challenge
111
 
111
 
112
OIDplus::baseConfig()->setValue('RECAPTCHA_VERSION',        OIDplusCaptchaPluginRecaptcha::RECAPTCHA_V2_CHECKBOX);
112
OIDplus::baseConfig()->setValue('RECAPTCHA_VERSION',        \ViaThinkSoft\OIDplus\OIDplusCaptchaPluginRecaptcha::RECAPTCHA_V2_CHECKBOX);
113
                         Possible values:
113
                         Possible values:
114
                         OIDplusCaptchaPluginRecaptcha::RECAPTCHA_V2_CHECKBOX
114
                         \ViaThinkSoft\OIDplus\OIDplusCaptchaPluginRecaptcha::RECAPTCHA_V2_CHECKBOX
115
                         OIDplusCaptchaPluginRecaptcha::RECAPTCHA_V2_INVISIBLE
115
                         \ViaThinkSoft\OIDplus\OIDplusCaptchaPluginRecaptcha::RECAPTCHA_V2_INVISIBLE
116
                         OIDplusCaptchaPluginRecaptcha::RECAPTCHA_V3
116
                         \ViaThinkSoft\OIDplus\OIDplusCaptchaPluginRecaptcha::RECAPTCHA_V3
117
 
117
 
118
OIDplus::baseConfig()->setValue('RECAPTCHA_ENABLED',        true);
118
OIDplus::baseConfig()->setValue('RECAPTCHA_ENABLED',        true);
119
                         Deprecated!
119
                         Deprecated!
120
                         RECAPTCHA_ENABLED=true  becomes CAPTCHA_PLUGIN=reCAPTCHA
120
                         RECAPTCHA_ENABLED=true  becomes CAPTCHA_PLUGIN=reCAPTCHA
121
                         RECAPTCHA_ENABLED=false becomes CAPTCHA_PLUGIN=None
121
                         RECAPTCHA_ENABLED=false becomes CAPTCHA_PLUGIN=None
122
 
122
 
123
OIDplus::baseConfig()->setValue('RECAPTCHA_PUBLIC',         '');
123
OIDplus::baseConfig()->setValue('RECAPTCHA_PUBLIC',         '');
124
                         Only used if CAPTCHA_PLUGIN=ReCAPTCHA
124
                         Only used if CAPTCHA_PLUGIN=ReCAPTCHA
125
 
125
 
126
OIDplus::baseConfig()->setValue('RECAPTCHA_PRIVATE',        '');
126
OIDplus::baseConfig()->setValue('RECAPTCHA_PRIVATE',        '');
127
                         Only used if CAPTCHA_PLUGIN=ReCAPTCHA
127
                         Only used if CAPTCHA_PLUGIN=ReCAPTCHA
128
 
128
 
129
OIDplus::baseConfig()->setValue('HCAPTCHA_SITEKEY',         '');
129
OIDplus::baseConfig()->setValue('HCAPTCHA_SITEKEY',         '');
130
                         Only used if CAPTCHA_PLUGIN=hCaptcha
130
                         Only used if CAPTCHA_PLUGIN=hCaptcha
131
 
131
 
132
OIDplus::baseConfig()->setValue('HCAPTCHA_SECRET',          '');
132
OIDplus::baseConfig()->setValue('HCAPTCHA_SECRET',          '');
133
                         Only used if CAPTCHA_PLUGIN=hCaptcha
133
                         Only used if CAPTCHA_PLUGIN=hCaptcha
134
 
134
 
135
OIDplus::baseConfig()->setValue('ENFORCE_SSL',              OIDplus::ENFORCE_SSL_AUTO);
135
OIDplus::baseConfig()->setValue('ENFORCE_SSL',              OIDplus::ENFORCE_SSL_AUTO);
136
                         Values OIDplus::ENFORCE_SSL_NO (0) = (off)
136
                         Values OIDplus::ENFORCE_SSL_NO (0) = (off)
137
                                OIDplus::ENFORCE_SSL_YES (1) = (on)
137
                                OIDplus::ENFORCE_SSL_YES (1) = (on)
138
                                OIDplus::ENFORCE_SSL_AUTO (2) = (auto detect SSL)
138
                                OIDplus::ENFORCE_SSL_AUTO (2) = (auto detect SSL)
139
 
139
 
140
OIDplus::baseConfig()->setValue('VTS_CAPTCHA_COMPLEXITY',   50000);
140
OIDplus::baseConfig()->setValue('VTS_CAPTCHA_COMPLEXITY',   50000);
141
                         Only used if CAPTCHA_PLUGIN=ViaThinkSoft Client Challenge
141
                         Only used if CAPTCHA_PLUGIN=ViaThinkSoft Client Challenge
142
 
142
 
143
OIDplus::baseConfig()->setValue('VTS_CAPTCHA_AUTOSOLVE',    true);
143
OIDplus::baseConfig()->setValue('VTS_CAPTCHA_AUTOSOLVE',    true);
144
                         Only used if CAPTCHA_PLUGIN=ViaThinkSoft Client Challenge
144
                         Only used if CAPTCHA_PLUGIN=ViaThinkSoft Client Challenge
145
 
145
 
146
OIDplus::baseConfig()->setValue('VTS_CAPTCHA_MAXTIME',      10*60/*10 minutes*/);
146
OIDplus::baseConfig()->setValue('VTS_CAPTCHA_MAXTIME',      10*60/*10 minutes*/);
147
                         Only used if CAPTCHA_PLUGIN=ViaThinkSoft Client Challenge
147
                         Only used if CAPTCHA_PLUGIN=ViaThinkSoft Client Challenge
148
 
148
 
149
----------------------
149
----------------------
150
(2) SYSTEM LIMITATIONS (defined and documented in includes/oidplus_limits.inc.php , can be overwritten by config.inc.php)
150
(2) SYSTEM LIMITATIONS (defined and documented in includes/oidplus_limits.inc.php , can be overwritten by config.inc.php)
151
----------------------
151
----------------------
152
 
152
 
153
OIDplus::baseConfig()->setValue('LIMITS_MAX_OID_DEPTH',  30);
153
OIDplus::baseConfig()->setValue('LIMITS_MAX_OID_DEPTH',  30);
154
                         Please read the documentation in the file includes/oidplus_limits.inc.php
154
                         Please read the documentation in the file includes/oidplus_limits.inc.php
155
 
155
 
156
OIDplus::baseConfig()->setValue('LIMITS_MAX_ID_LENGTH',     255);
156
OIDplus::baseConfig()->setValue('LIMITS_MAX_ID_LENGTH',     255);
157
                         Please read the documentation in the file includes/oidplus_limits.inc.php
157
                         Please read the documentation in the file includes/oidplus_limits.inc.php
158
 
158
 
159
OIDplus::baseConfig()->setValue('LIMITS_MAX_OID_ARC_SIZE',  50);
159
OIDplus::baseConfig()->setValue('LIMITS_MAX_OID_ARC_SIZE',  50);
160
                         Please read the documentation in the file includes/oidplus_limits.inc.php
160
                         Please read the documentation in the file includes/oidplus_limits.inc.php
161
 
161
 
162
OIDplus::baseConfig()->setValue('LIMITS_MAX_OID_ASN1_ID_LEN',  255);
162
OIDplus::baseConfig()->setValue('LIMITS_MAX_OID_ASN1_ID_LEN',  255);
163
                         Please read the documentation in the file includes/oidplus_limits.inc.php
163
                         Please read the documentation in the file includes/oidplus_limits.inc.php
164
 
164
 
165
OIDplus::baseConfig()->setValue('LIMITS_MAX_OID_UNICODE_LABEL_LEN',  255);
165
OIDplus::baseConfig()->setValue('LIMITS_MAX_OID_UNICODE_LABEL_LEN',  255);
166
                         Please read the documentation in the file includes/oidplus_limits.inc.php
166
                         Please read the documentation in the file includes/oidplus_limits.inc.php
167
 
167
 
168
 
168
 
169
-----------------------------------------
169
-----------------------------------------
170
(3) "HIDDEN"/UNDOCUMENTED CONFIG SETTINGS
170
(3) "HIDDEN"/UNDOCUMENTED CONFIG SETTINGS
171
-----------------------------------------
171
-----------------------------------------
172
 
172
 
173
OIDplus::baseConfig()->setValue('OIDINFO_API_URL', '<url>');
173
OIDplus::baseConfig()->setValue('OIDINFO_API_URL', '<url>');
174
                         Currently only internal use for development utilities (dev/).
174
                         Currently only internal use for development utilities (dev/).
175
                         The API to oid-info.com is currently not public.
175
                         The API to oid-info.com is currently not public.
176
 
176
 
177
OIDplus::baseConfig()->setValue('REGISTRATION_HIDE_SYSTEM', true);
177
OIDplus::baseConfig()->setValue('REGISTRATION_HIDE_SYSTEM', true);
178
                         Set this if you have a clone of a productive system and you want
178
                         Set this if you have a clone of a productive system and you want
179
                         to avoid that the clone registers at the ViaThinkSoft directory
179
                         to avoid that the clone registers at the ViaThinkSoft directory
180
                         (which would overwrite the URL of the productive system and reveal
180
                         (which would overwrite the URL of the productive system and reveal
181
                         the URL of your testing system)
181
                         the URL of your testing system)
182
 
182
 
183
OIDplus::baseConfig()->setValue('MYSQL_FORCE_MYSQLND_SUPPLEMENT',         false);
183
OIDplus::baseConfig()->setValue('MYSQL_FORCE_MYSQLND_SUPPLEMENT',         false);
184
                         The MySQLi plugin contains a supplement code to handle
184
                         The MySQLi plugin contains a supplement code to handle
185
                         prepared statements on servers which do not have the MySQLnd extension
185
                         prepared statements on servers which do not have the MySQLnd extension
186
                         installed. Set this flag to force the supplement to be used,
186
                         installed. Set this flag to force the supplement to be used,
187
                         even if MySQLnd is available. (For testing purposes only)
187
                         even if MySQLnd is available. (For testing purposes only)
188
 
188
 
189
OIDplus::baseConfig()->setValue('QUERY_LOGFILE',          '');
189
OIDplus::baseConfig()->setValue('QUERY_LOGFILE',          '');
190
                         Set this setting to a filename where all queries including timestamps would be written.
190
                         Set this setting to a filename where all queries including timestamps would be written.
191
                         This is used for performance analysis.
191
                         This is used for performance analysis.
192
                         Please choose a directory that cannot be accessed by world-wide.
192
                         Please choose a directory that cannot be accessed by world-wide.
193
 
193
 
194
OIDplus::baseConfig()->setValue('SESSION_LIFETIME', 30*60);
194
OIDplus::baseConfig()->setValue('SESSION_LIFETIME', 30*60);
195
                         Session lifetime in seconds.
195
                         Session lifetime in seconds.
196
 
196
 
197
OIDplus::baseConfig()->setValue('OBJECT_CACHING',         true);
197
OIDplus::baseConfig()->setValue('OBJECT_CACHING',         true);
198
 
198
 
199
OIDplus::baseConfig()->setValue('FORCE_DBMS_SLANG', '');
199
OIDplus::baseConfig()->setValue('FORCE_DBMS_SLANG', '');
200
                         Currently valid values: access, mssql, mysql, oracle, pgsql, sqlite
200
                         Currently valid values: access, mssql, mysql, oracle, pgsql, sqlite
201
 
201
 
202
OIDplus::baseConfig()->setValue('PREPARED_STATEMENTS_EMULATION', 'auto');
202
OIDplus::baseConfig()->setValue('PREPARED_STATEMENTS_EMULATION', 'auto');
203
                         Currently only for ODBC database plugin.
203
                         Currently only for ODBC database plugin.
204
                         'auto' = Auto detect if prepared statements should be emulated
204
                         'auto' = Auto detect if prepared statements should be emulated
205
                         'on' = Always emulate prepared statements
205
                         'on' = Always emulate prepared statements
206
                         'off' = Never emulate prepared statements
206
                         'off' = Never emulate prepared statements
207
 
207
 
208
OIDplus::baseConfig()->setValue('MINIFY_CSS', true);
208
OIDplus::baseConfig()->setValue('MINIFY_CSS', true);
209
                         This enables the compression of CSS definitions.
209
                         This enables the compression of CSS definitions.
210
                         Compressed approx:   220 KB
210
                         Compressed approx:   220 KB
211
                         Uncompressed approx: 224 KB
211
                         Uncompressed approx: 224 KB
212
 
212
 
213
OIDplus::baseConfig()->setValue('MINIFY_JS',  true);
213
OIDplus::baseConfig()->setValue('MINIFY_JS',  true);
214
                         This enables the compression of JavaScript code.
214
                         This enables the compression of JavaScript code.
215
                         Please only disable this, if you want to debug
215
                         Please only disable this, if you want to debug
216
                         the code! You should not disable it on a productive
216
                         the code! You should not disable it on a productive
217
                         system, because otherwise the JavaScript code
217
                         system, because otherwise the JavaScript code
218
                         would be several Megabytes large.
218
                         would be several Megabytes large.
219
                         Compressed approx:  1133 KB
219
                         Compressed approx:  1133 KB
220
                         Unompressed approx: 2761 KB
220
                         Unompressed approx: 2761 KB
221
 
221
 
222
OIDplus::baseConfig()->setValue('DISABLE_PLUGIN_...', true);
222
OIDplus::baseConfig()->setValue('DISABLE_PLUGIN_...', true);
223
                         This gives you the possibility to disable a plugin without
223
                         This gives you the possibility to disable a plugin without
224
                         requiring it to be removed from the file system.
224
                         requiring it to be removed from the file system.
225
                         (Removing a plugin from the file system can result in various
225
                         (Removing a plugin from the file system can result in various
226
                         problems, e.g. they can be re-added during a SVN/software update.)
226
                         problems, e.g. they can be re-added during a SVN/software update.)
227
                         Replace "..." with the main PHP class of the plugin you want to disable
227
                         Replace "..." with the main PHP class of the plugin you want to disable.
-
 
228
                         The namespace must be included.
228
                         Example:
229
                         Example:
229
                         "DISABLE_PLUGIN_OIDplusLoggerPluginUserdataLogfile"
230
                         "DISABLE_PLUGIN_ViaThinkSoft\OIDplus\OIDplusLoggerPluginUserdataLogfile"
230
                         disables the plugin "logger/300_userdata_logfile".
231
                         disables the plugin "logger/300_userdata_logfile".
231
 
232
 
232
OIDplus::baseConfig()->setValue('DISABLE_AJAX_TRANSACTIONS', false);
233
OIDplus::baseConfig()->setValue('DISABLE_AJAX_TRANSACTIONS', false);
233
                         This will disable the usage of database transactions in ajax.php
234
                         This will disable the usage of database transactions in ajax.php
234
                         Do only use this if you have severe problems with the system running.
235
                         Do only use this if you have severe problems with the system running.
235
                         It might result in inconsistent data e.g. if you update an OID
236
                         It might result in inconsistent data e.g. if you update an OID
236
                         and an error occurs in the middle of that process.
237
                         and an error occurs in the middle of that process.
237
 
238
 
238
OIDplus::baseConfig()->setValue('CANONICAL_SYSTEM_URL', '');
239
OIDplus::baseConfig()->setValue('CANONICAL_SYSTEM_URL', '');
239
                         Setting this value to a system URL will override the absolute system URL detection.
240
                         Setting this value to a system URL will override the absolute system URL detection.
240
                         It has the following effects:
241
                         It has the following effects:
241
                         1. The "canonical" metatag will use this explicit system URL
242
                         1. The "canonical" metatag will use this explicit system URL
242
                            instead of the one the PHP script is detecting.
243
                            instead of the one the PHP script is detecting.
243
                            (This is important to avoid duplicate content at search indexes)
244
                            (This is important to avoid duplicate content at search indexes)
244
                         2. CLI WHOIS and other CLI (Command-line-interface) tools
245
                         2. CLI WHOIS and other CLI (Command-line-interface) tools
245
                            will use this address when they need to output an URL.
246
                            will use this address when they need to output an URL.
246
                            Otherwise, the CLI tools would need to use the last known
247
                            Otherwise, the CLI tools would need to use the last known
247
                            URL that was detected when a webpage visitor has last visited the
248
                            URL that was detected when a webpage visitor has last visited the
248
                            page.
249
                            page.
249
                         3. While most resources (images, CSS files, scripts, etc.) are loaded
250
                         3. While most resources (images, CSS files, scripts, etc.) are loaded
250
                            via relative URLs, sometimes an absolute URL is required
251
                            via relative URLs, sometimes an absolute URL is required
251
                            (e.g., if an email is sent with an activation link).
252
                            (e.g., if an email is sent with an activation link).
252
                            The explicit absolute system URL will then be used rather
253
                            The explicit absolute system URL will then be used rather
253
                            than the automatically detected one.
254
                            than the automatically detected one.
254
                         Note that setting an absolute system URL can be very useful if
255
                         Note that setting an absolute system URL can be very useful if
255
                         OIDplus runs on a system (which detects itself as "X"),
256
                         OIDplus runs on a system (which detects itself as "X"),
256
                         while the canonical URL "Y" is a reverse-proxy.
257
                         while the canonical URL "Y" is a reverse-proxy.
257
 
258
 
258
OIDplus::baseConfig()->setValue('DEBUG', false);
259
OIDplus::baseConfig()->setValue('DEBUG', false);
259
                         Enables some special checks for plugins (e.g. a self-test for auth plugins).
260
                         Enables some special checks for plugins (e.g. a self-test for auth plugins).
260
                         It is highly recommended that you enable DEBUG if you are developing
261
                         It is highly recommended that you enable DEBUG if you are developing
261
                         plugins!
262
                         plugins!
262
                         It is recommended to disable this switch in productive systems,
263
                         It is recommended to disable this switch in productive systems,
263
                         because the self-tests decrease the performance.
264
                         because the self-tests decrease the performance.
264
                         However, after installing a new plugin, you might want to enable
265
                         However, after installing a new plugin, you might want to enable
265
                         it for a few minutes, to make sure the plugin is working correctly.
266
                         it for a few minutes, to make sure the plugin is working correctly.
266
 
267
 
267
OIDplus::baseConfig()->setValue('COOKIE_SAMESITE_POLICY', 'Strict');
268
OIDplus::baseConfig()->setValue('COOKIE_SAMESITE_POLICY', 'Strict');
268
                         Defined which "SameSite" policy should be used for the cookies OIDplus uses.
269
                         Defined which "SameSite" policy should be used for the cookies OIDplus uses.
269
                         Can be "None", "Lax" or "Strict".
270
                         Can be "None", "Lax" or "Strict".
270
                         "Strict" is the most secure setting.
271
                         "Strict" is the most secure setting.
271
                         "Lax" allows that people stay logged in if they follow a link pointing
272
                         "Lax" allows that people stay logged in if they follow a link pointing
272
                         to your OIDplus installation.
273
                         to your OIDplus installation.
273
                         "None" is not recommended and is deprecated by modern web browsers.
274
                         "None" is not recommended and is deprecated by modern web browsers.
274
                         However, OIDplus itself provides an Anti-CSRF mechanism, so you should be
275
                         However, OIDplus itself provides an Anti-CSRF mechanism, so you should be
275
                         still safe.
276
                         still safe.
276
 
277
 
277
OIDplus::baseConfig()->setValue('COOKIE_DOMAIN', '');
278
OIDplus::baseConfig()->setValue('COOKIE_DOMAIN', '');
278
                         Can be used to increase security by setting an explicit domain-name in the cookies.
279
                         Can be used to increase security by setting an explicit domain-name in the cookies.
279
                         Set to '' (empty string) to allow all (sub)domains.
280
                         Set to '' (empty string) to allow all (sub)domains.
280
                         Set to '(auto)' to automatically detect the domain based on the absolute canonical path.
281
                         Set to '(auto)' to automatically detect the domain based on the absolute canonical path.
281
 
282
 
282
OIDplus::baseConfig()->setValue('COOKIE_PATH', '/');
283
OIDplus::baseConfig()->setValue('COOKIE_PATH', '/');
283
                         Can be used to increase security by setting an explicit pathname in the cookies.
284
                         Can be used to increase security by setting an explicit pathname in the cookies.
284
                         Set to '/' to allow all paths.
285
                         Set to '/' to allow all paths.
285
                         Set to '(auto)' to automatically detect the path based on the absolute canonical path.
286
                         Set to '(auto)' to automatically detect the path based on the absolute canonical path.
286
                         Note: If supported, you can use Apache's "ProxyPassReverseCookiePath" to translate
287
                         Note: If supported, you can use Apache's "ProxyPassReverseCookiePath" to translate
287
                         the cookie path in a reverse-proxy setting.
288
                         the cookie path in a reverse-proxy setting.
288
 
289
 
289
OIDplus::baseConfig()->getValue('RA_PASSWORD_PEPPER', '');
290
OIDplus::baseConfig()->getValue('RA_PASSWORD_PEPPER', '');
290
                         The pepper is stored inside the base configuration file
291
                         The pepper is stored inside the base configuration file
291
                         It prevents that an attacker with SQL write rights can
292
                         It prevents that an attacker with SQL write rights can
292
                         create accounts.
293
                         create accounts.
293
                         ATTENTION!!! If a pepper is used, then the
294
                         ATTENTION!!! If a pepper is used, then the
294
                         hashes are bound to that pepper. If you change the pepper,
295
                         hashes are bound to that pepper. If you change the pepper,
295
                         then ALL passwords of RAs become INVALID!
296
                         then ALL passwords of RAs become INVALID!
296
 
297
 
297
OIDplus::baseConfig()->getValue('RA_PASSWORD_PEPPER_ALGO', 'sha512');
298
OIDplus::baseConfig()->getValue('RA_PASSWORD_PEPPER_ALGO', 'sha512');
298
                         The pepper is stored inside the base configuration file
299
                         The pepper is stored inside the base configuration file
299
                         It prevents that an attacker with SQL write rights can
300
                         It prevents that an attacker with SQL write rights can
300
                         create accounts.
301
                         create accounts.
301
                         ATTENTION!!! If a pepper is used, then the
302
                         ATTENTION!!! If a pepper is used, then the
302
                         hashes are bound to that pepper. If you change the pepper,
303
                         hashes are bound to that pepper. If you change the pepper,
303
                         then ALL passwords of RAs become INVALID!
304
                         then ALL passwords of RAs become INVALID!
304
 
305
 
305
OIDplus::baseConfig()->setValue('DEFAULT_LANGUAGE', 'enus');
306
OIDplus::baseConfig()->setValue('DEFAULT_LANGUAGE', 'enus');
306
                         Default language of the system. This is the language
307
                         Default language of the system. This is the language
307
                         a new visitor will see if no "lang=" parameter is used
308
                         a new visitor will see if no "lang=" parameter is used
308
                         and no cookie is set.
309
                         and no cookie is set.
309
                         Must be a valid language in the plugins directory.
310
                         Must be a valid language in the plugins directory.
310
                         Currently available:
311
                         Currently available:
311
                         enus = English USA (default)
312
                         enus = English USA (default)
312
                         dede = German Germany
313
                         dede = German Germany
313
 
314
 
314
----------------------------------------------------
315
----------------------------------------------------
315
(4) LDAP FIELDS (see document ldap_installation.txt)
316
(4) LDAP FIELDS (see document ldap_installation.txt)
316
----------------------------------------------------
317
----------------------------------------------------
317
 
318
 
318
OIDplus::baseConfig()->setValue('LDAP_ENABLED',                true);
319
OIDplus::baseConfig()->setValue('LDAP_ENABLED',                true);
319
                         Set to true if you want to enable that users can log-in using LDAP / ActiveDirectory.
320
                         Set to true if you want to enable that users can log-in using LDAP / ActiveDirectory.
320
 
321
 
321
OIDplus::baseConfig()->setValue('LDAP_NUM_DOMAINS',            1);
322
OIDplus::baseConfig()->setValue('LDAP_NUM_DOMAINS',            1);
322
                         Contains the number of domains/servers which are used.
323
                         Contains the number of domains/servers which are used.
323
                         For 2nd, 3rd, 4th, ... domain use the fields LDAP_xxx__2, LDAP_xxx__3, ...
324
                         For 2nd, 3rd, 4th, ... domain use the fields LDAP_xxx__2, LDAP_xxx__3, ...
324
                         e.g.   LDAP_SERVER__2
325
                         e.g.   LDAP_SERVER__2
325
                                LDAP_PORT__2
326
                                LDAP_PORT__2
326
                                LDAP_BASE_DN__2
327
                                LDAP_BASE_DN__2
327
                                ...
328
                                ...
328
 
329
 
329
OIDplus::baseConfig()->setValue('LDAP_SERVER',                 'ldap://server1.contoso.local');
330
OIDplus::baseConfig()->setValue('LDAP_SERVER',                 'ldap://server1.contoso.local');
330
                         The LDAP server of your company.
331
                         The LDAP server of your company.
331
 
332
 
332
OIDplus::baseConfig()->setValue('LDAP_PORT',                   389);
333
OIDplus::baseConfig()->setValue('LDAP_PORT',                   389);
333
                         The port of the LDAP server
334
                         The port of the LDAP server
334
 
335
 
335
OIDplus::baseConfig()->setValue('LDAP_BASE_DN',                'DC=CONTOSO,DC=local');
336
OIDplus::baseConfig()->setValue('LDAP_BASE_DN',                'DC=CONTOSO,DC=local');
336
                         The base Distinguished Name (DN) of your directory.
337
                         The base Distinguished Name (DN) of your directory.
337
 
338
 
338
OIDplus::baseConfig()->setValue('LDAP_UPN_SUFFIX',             '@contoso.local');
339
OIDplus::baseConfig()->setValue('LDAP_UPN_SUFFIX',             '@contoso.local');
339
                         The UPN suffix of this domain.
340
                         The UPN suffix of this domain.
340
 
341
 
341
OIDplus::baseConfig()->setValue('LDAP_AUTHENTICATE_UPN',       true);
342
OIDplus::baseConfig()->setValue('LDAP_AUTHENTICATE_UPN',       true);
342
                         In the login mask, the users will log in using the UPN ("principal name") e.g. username@contoso.local,
343
                         In the login mask, the users will log in using the UPN ("principal name") e.g. username@contoso.local,
343
                         and in OIDplus, a RA account with an email equal to the UPN will be created.
344
                         and in OIDplus, a RA account with an email equal to the UPN will be created.
344
 
345
 
345
OIDplus::baseConfig()->setValue('LDAP_AUTHENTICATE_EMAIL',     false);
346
OIDplus::baseConfig()->setValue('LDAP_AUTHENTICATE_EMAIL',     false);
346
                         In the login mask, the users will log in using the UPN ("principal name") e.g. username@contoso.local,
347
                         In the login mask, the users will log in using the UPN ("principal name") e.g. username@contoso.local,
347
                         and in OIDplus, a RA account with an email equal to the "E-Mail-Address" field of the user in the directory will be created.
348
                         and in OIDplus, a RA account with an email equal to the "E-Mail-Address" field of the user in the directory will be created.
348
                         Note: If you did not set an email address to the user in the LDAP/ActiveDirectory, then the login will not be possible,
349
                         Note: If you did not set an email address to the user in the LDAP/ActiveDirectory, then the login will not be possible,
349
                         except if LDAP_AUTHENTICATE_UPN is additionally enabled.
350
                         except if LDAP_AUTHENTICATE_UPN is additionally enabled.
350
                         Attention: Depending on your domain configuration, users might be able to change their own data,
351
                         Attention: Depending on your domain configuration, users might be able to change their own data,
351
                         e.g. email address. If this is the case, you must not enable this setting, otherwise,
352
                         e.g. email address. If this is the case, you must not enable this setting, otherwise,
352
                         users could authenticate with any address!
353
                         users could authenticate with any address!
353
 
354
 
354
OIDplus::baseConfig()->setValue('LDAP_ADMIN_GROUP',            '');
355
OIDplus::baseConfig()->setValue('LDAP_ADMIN_GROUP',            '');
355
                         If set to an empty string, the OIDplus administrator account cannot be accessed using LDAP authentication.
356
                         If set to an empty string, the OIDplus administrator account cannot be accessed using LDAP authentication.
356
                         Otherwise, the user will be authenticated as administrator, if the LDAP user is a
357
                         Otherwise, the user will be authenticated as administrator, if the LDAP user is a
357
                         member of the group specified in this setting.
358
                         member of the group specified in this setting.
358
                         Example values: CN=Administrators,CN=Builtin,DC=CONTOSO,DC=local
359
                         Example values: CN=Administrators,CN=Builtin,DC=CONTOSO,DC=local
359
                                         makes every domain administrator also an OIDplus administrator
360
                                         makes every domain administrator also an OIDplus administrator
360
                                         CN=OIDplus Administrators,CN=Users,DC=CONTOSO,DC=local
361
                                         CN=OIDplus Administrators,CN=Users,DC=CONTOSO,DC=local
361
                                         makes every user of the group (OIDplus Administrators) to OIDplus administrators
362
                                         makes every user of the group (OIDplus Administrators) to OIDplus administrators
362
                         
363
                         
363
OIDplus::baseConfig()->setValue('LDAP_RA_GROUP',               '');
364
OIDplus::baseConfig()->setValue('LDAP_RA_GROUP',               '');
364
                         If set to an empty string, every LDAP user can authenticate as RA, depending
365
                         If set to an empty string, every LDAP user can authenticate as RA, depending
365
                         on whether LDAP_AUTHENTICATE_UPN and/or LDAP_AUTHENTICATE_EMAIL is set.
366
                         on whether LDAP_AUTHENTICATE_UPN and/or LDAP_AUTHENTICATE_EMAIL is set.
366
                         Otherwise, the LDAP users must be a member of the group specified in this setting.
367
                         Otherwise, the LDAP users must be a member of the group specified in this setting.
367
 
368
 
368
 
369
 
369
----------------------------------------------------------------------
370
----------------------------------------------------------------------
370
(5) GOOGLE OAUTH2 FIELDS (see document google_oauth2_installation.txt)
371
(5) GOOGLE OAUTH2 FIELDS (see document google_oauth2_installation.txt)
371
----------------------------------------------------------------------
372
----------------------------------------------------------------------
372
 
373
 
373
OIDplus::baseConfig()->setValue('GOOGLE_OAUTH2_ENABLED',       true);
374
OIDplus::baseConfig()->setValue('GOOGLE_OAUTH2_ENABLED',       true);
374
OIDplus::baseConfig()->setValue('GOOGLE_OAUTH2_CLIENT_ID',     '..............apps.googleusercontent.com');
375
OIDplus::baseConfig()->setValue('GOOGLE_OAUTH2_CLIENT_ID',     '..............apps.googleusercontent.com');
375
OIDplus::baseConfig()->setValue('GOOGLE_OAUTH2_CLIENT_SECRET', '.............');
376
OIDplus::baseConfig()->setValue('GOOGLE_OAUTH2_CLIENT_SECRET', '.............');
376
 
377
 
377
 
378
 
378
--------------------------------------------------------------------------
379
--------------------------------------------------------------------------
379
(6) FACEBOOK OAUTH2 FIELDS (see document facebook_oauth2_installation.txt)
380
(6) FACEBOOK OAUTH2 FIELDS (see document facebook_oauth2_installation.txt)
380
--------------------------------------------------------------------------
381
--------------------------------------------------------------------------
381
 
382
 
382
OIDplus::baseConfig()->setValue('FACEBOOK_OAUTH2_ENABLED',       true);
383
OIDplus::baseConfig()->setValue('FACEBOOK_OAUTH2_ENABLED',       true);
383
OIDplus::baseConfig()->setValue('FACEBOOK_OAUTH2_CLIENT_ID',     '.............'); // Your App ID
384
OIDplus::baseConfig()->setValue('FACEBOOK_OAUTH2_CLIENT_ID',     '.............'); // Your App ID
384
OIDplus::baseConfig()->setValue('FACEBOOK_OAUTH2_CLIENT_SECRET', '.............'); // Your App Secret
385
OIDplus::baseConfig()->setValue('FACEBOOK_OAUTH2_CLIENT_SECRET', '.............'); // Your App Secret
385
 
386
 
386
 
387
 
387
----------------------------------------------------
388
----------------------------------------------------
388
(7) JWT AUTHENTICATION FIELDS
389
(7) JWT AUTHENTICATION FIELDS
389
----------------------------------------------------
390
----------------------------------------------------
390
 
391
 
391
If a web request contains the field "OIDPLUS_AUTH_JWT" containing a signed JWT token,
392
If a web request contains the field "OIDPLUS_AUTH_JWT" containing a signed JWT token,
392
an automatic one-time login is performed in order to execute commands.
393
an automatic one-time login is performed in order to execute commands.
393
This feature is used in the plugins "Automated AJAX calls" for admins and RAs.
394
This feature is used in the plugins "Automated AJAX calls" for admins and RAs.
394
With these switches you can disable this feature.
395
With these switches you can disable this feature.
395
 
396
 
396
OIDplus::baseConfig()->setValue('JWT_ALLOW_AJAX_ADMIN', true);
397
OIDplus::baseConfig()->setValue('JWT_ALLOW_AJAX_ADMIN', true);
397
                         Allow JWT tokens that were created using the admin-plugin
398
                         Allow JWT tokens that were created using the admin-plugin
398
                         "Automated AJAX calls".
399
                         "Automated AJAX calls".
399
 
400
 
400
OIDplus::baseConfig()->setValue('JWT_ALLOW_AJAX_USER', true);
401
OIDplus::baseConfig()->setValue('JWT_ALLOW_AJAX_USER', true);
401
                         Allow JWT tokens that were created using the RA-plugin
402
                         Allow JWT tokens that were created using the RA-plugin
402
                         "Automated AJAX calls".
403
                         "Automated AJAX calls".
403
 
404
 
404
OIDplus::baseConfig()->setValue('JWT_ALLOW_LOGIN_ADMIN', true);
405
OIDplus::baseConfig()->setValue('JWT_ALLOW_LOGIN_ADMIN', true);
405
                         Allow "Remember me" logins for the administrator account.
406
                         Allow "Remember me" logins for the administrator account.
406
 
407
 
407
OIDplus::baseConfig()->setValue('JWT_ALLOW_LOGIN_USER', true);
408
OIDplus::baseConfig()->setValue('JWT_ALLOW_LOGIN_USER', true);
408
                         Allow "Remember me" logins for a RA.
409
                         Allow "Remember me" logins for a RA.
409
 
410
 
410
OIDplus::baseConfig()->setValue('JWT_ALLOW_MANUAL', false);
411
OIDplus::baseConfig()->setValue('JWT_ALLOW_MANUAL', false);
411
                         Allow JWT tokens which were manually created "by hand".
412
                         Allow JWT tokens which were manually created "by hand".
412
                         These can have any content you like, but they must
413
                         These can have any content you like, but they must
413
                         contain the claim "oidplus_generator" with value "2".
414
                         contain the claim "oidplus_generator" with value "2".
414
 
415
 
415
OIDplus::baseConfig()->setValue('JWT_TTL_LOGIN_USER', 10*365*24*60*60);
416
OIDplus::baseConfig()->setValue('JWT_TTL_LOGIN_USER', 10*365*24*60*60);
416
                         How many seconds will a "remember me" login JWT token be valid?
417
                         How many seconds will a "remember me" login JWT token be valid?
417
                         (RA login)
418
                         (RA login)
418
 
419
 
419
OIDplus::baseConfig()->setValue('JWT_TTL_LOGIN_ADMIN', 10*365*24*60*60);
420
OIDplus::baseConfig()->setValue('JWT_TTL_LOGIN_ADMIN', 10*365*24*60*60);
420
                         How many seconds will a "remember me" login JWT token be valid?
421
                         How many seconds will a "remember me" login JWT token be valid?
421
                         (Administrator login)
422
                         (Administrator login)
422
 
423
 
423
 
424
 
424
----------------------------------------------------
425
----------------------------------------------------
425
(8) THIRD-PARTY PLUGINS
426
(8) THIRD-PARTY PLUGINS
426
----------------------------------------------------
427
----------------------------------------------------
427
 
428
 
428
OIDplus::baseConfig()->setValue('RDAP_CACHE_ENABLED',   false );
429
OIDplus::baseConfig()->setValue('RDAP_CACHE_ENABLED',   false );
429
OIDplus::baseConfig()->setValue('RDAP_CACHE_DIRECTORY', OIDplus::localpath().'userdata/cache/' );
430
OIDplus::baseConfig()->setValue('RDAP_CACHE_DIRECTORY', OIDplus::localpath().'userdata/cache/' );
430
OIDplus::baseConfig()->setValue('RDAP_BASE_URI',        OIDplus::webpath() );
431
OIDplus::baseConfig()->setValue('RDAP_BASE_URI',        OIDplus::webpath() );
431
OIDplus::baseConfig()->setValue('RDAP_CACHE_EXPIRES',   60 * 3 );
432
OIDplus::baseConfig()->setValue('RDAP_CACHE_EXPIRES',   60 * 3 );