Index: private/simplesamlphp-1.14.6/config/config.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- private/simplesamlphp-1.14.6/config/config.php (revision 6d88acf6718f984b28883b45e2a118bf08c7c5b8) +++ private/simplesamlphp-1.14.6/config/config.php (revision 23ae10c04d22ac17a70cee0d031681d6eb13c551) @@ -4,6 +4,13 @@ * */ +//Copy over the mysql information from settings.php file +$ps = json_decode($_SERVER['PRESSFLOW_SETTINGS'], TRUE); +$host = $_SERVER['HTTP_HOST']; +$drop_id = $ps['conf']['pantheon_binding']; +$db = $ps['databases']['default']['default']; + + $config = array( /** @@ -21,7 +28,7 @@ * external url, no matter where you come from (direct access or via the * reverse proxy). */ - 'baseurlpath' => 'simplesaml/', + 'baseurlpath' => 'https://' . $host .'/simplesaml/', 'certdir' => 'cert/', 'loggingdir' => 'log/', 'datadir' => 'data/', @@ -31,7 +38,7 @@ * * SimpleSAMLphp will attempt to create this directory if it doesn't exist. */ - 'tempdir' => '/tmp/simplesaml', + 'tempdir' => '/srv/bindings/'. $drop_id .'/tmp/simplesaml', /* @@ -75,7 +82,7 @@ * metadata listing and diagnostics pages. * You can also put a hash here; run "bin/pwgen.php" to generate one. */ - 'auth.adminpassword' => '123', + 'auth.adminpassword' => '5ome1hing5@f3', 'admin.protectindexpage' => false, 'admin.protectmetadata' => false, @@ -683,7 +690,7 @@ * * (This option replaces the old 'session.handler'-option.) */ - 'store.type' => 'phpsession', + 'store.type' => 'sql', /* @@ -692,13 +699,13 @@ * See http://www.php.net/manual/en/pdo.drivers.php for the various * syntaxes. */ - 'store.sql.dsn' => 'sqlite:/path/to/sqlitedatabase.sq3', + 'store.sql.dsn' => 'mysql:host='. $db['host'] .';port='. $db['port'] .';dbname='. $db['database'], /* * The username and password to use when connecting to the database. */ - 'store.sql.username' => null, - 'store.sql.password' => null, + 'store.sql.username' => $db['username'], + 'store.sql.password' => $db['password'], /* * The prefix we should use on our tables.