Skip to content
Snippets Groups Projects
Unverified Commit 97dd0ad0 authored by briancanini's avatar briancanini Committed by GitHub
Browse files

Merge pull request #229 from ASCWebServices/ssofix2

Re-apply SSO tmp folder fix
parents 3fb3a874 80ba42ed
No related merge requests found
......@@ -6,7 +6,7 @@
if (empty($_SERVER['PATH_INFO']) && !empty($_SERVER['DOCUMENT_URI'])) {
$index = strpos($_SERVER['DOCUMENT_URI'], '.php');
if($index) {
$_SERVER['PATH_INFO'] = substr($_SERVER['DOCUMENT_URI'], $index+4);
$_SERVER['PATH_INFO'] = substr($_SERVER['DOCUMENT_URI'], $index+4);
}
}
......@@ -22,6 +22,15 @@
$drop_id = $ps['conf']['pantheon_binding'];
$db = $ps['databases']['default']['default'];
if($_SERVER['HOME'] == '/') {
$temp_path = '/tmp';
}
else {
$temp_path = $_SERVER['HOME'] . '/tmp/simplesaml';
}
// error_log("temp_path: " . $temp_path);
// Set metadata path
$metadata_folder = __DIR__ . '/../../../../web/sites/default/files/private/simplesamlphp/metadata';
// error_log("config.php - metadata_folder: $metadata_folder");
......@@ -126,7 +135,7 @@
'certdir' => $cert_folder,
'loggingdir' => 'log/',
'datadir' => 'data/',
'tempdir' => '/srv/bindings/' . $drop_id . '/tmp/simplesaml',
'tempdir' => $temp_path,
'supressportnumber' => TRUE,
'cronkey' => '5nvD3MgHLDDStnEKgK0au3vhqEjNNnvkHLmbVWvObIl2lpx0guXx5h',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment