-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.EXAMPLE.php
39 lines (33 loc) · 1.92 KB
/
config.EXAMPLE.php
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
<?php
// Model configuration/settings file.
// Edit values here and then rename the file to index_config.php in the same directory
// See https://github.com/LincolnUniLTL/AlmEZ/blob/master/README.md → Configuration and testing for more explanation if needed
define('_DEBUG_', TRUE); // when TRUE and calling through EZProxy, this may cause failures, depending on user.txt stanza and $testParamas['validmsg'] below
define('_VERBOSE_', FALSE);
$cert_fname = ''; // absolute filepath to SSL certificate bundle eg '\path\to\cacert.pem'. If you don't want to maintain and aren't worried about security, leave empty.
// these parameters will be used if HTTP POST vars are not sent (i.e. for standalone testing)
$testParams = array(
'user' => '**testuser**', // real (test?) patron name
'password' => '*******', // patron password
'validmsg' => '+OK', // good to test a different value to default/supplied
);
// these are Alma account variables, some required for SOAP, some for REST. Refer ExL Developer Network: https://developers.exlibrisgroup.com/alma
$account = array(
'hub' => '**ap**', // the Alma regional data centre or hub code, others @7/2014 are 'eu' and 'na'
# 'key' => '***********************************', // prod API key, refer ExL Developer Network
'key' => '***********************************', // Guest sandbox (dev) API key, we comment out as needed for testing/prod
);
// map concatenated EZproxy authorisation group strings with Alma user group codes
$authorisationGroups = array(
'Everyone+Restricted+Alumni+Auto' => array('RS', 'UG', 'PG', 'TEMP', 'DIS', 'STAFF', 'SC', 'CS', 'CR', 'HON', 'TEL'),
'Everyone+Alumni+Auto' => array('ALUM'),
'Everyone+Auto' => array('SP', 'TPU', 'RB', 'TAE', 'UA'),
);
$ezproxyConfig = array(
'WillVerifyIp' => TRUE, // TRUE: Verify EZproxy's IP address against "IpList" below. FALSE: Do not verify
'IpList' => array( // EZproxy's IP address list
"111.111.111.111",
"127.0.0.1",
),
);
?>