Package: simplesamlphp / 1.14.11-1+deb9u2

debian_config.patch Patch series | download
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
Description: Debian-specific paths and defaults
Forwarded: not-needed
Author: Thijs Kinkhorst <thijs@debian.org>

--- simplesamlphp-1.14.0.orig/config/config.php	2016-02-15 12:54:10.000000000 +0000
+++ simplesamlphp-1.14.0/config/config.php	2016-02-17 10:19:38.234235350 +0000
@@ -21,10 +21,12 @@
      * external url, no matter where you come from (direct access or via the
      * reverse proxy).
      */
-    'baseurlpath' => 'simplesaml/',
-    'certdir' => 'cert/',
-    'loggingdir' => 'log/',
-    'datadir' => 'data/',
+    'baseurlpath' => 'simplesamlphp/',
+    'certdir' => '/etc/ssl/certs/',
+    'loggingdir' => '/var/log/simplesamlphp/',
+    'datadir' => '/var/lib/simplesamlphp/data/',
+    'metadatadir' => '/etc/simplesamlphp/metadata/',
+    'attributenamemapdir' => '/etc/simplesamlphp/attributemap/',
 
     /*
      * A directory where SimpleSAMLphp can save temporary files.
@@ -75,7 +77,8 @@
      * metadata listing and diagnostics pages.
      * You can also put a hash here; run "bin/pwgen.php" to generate one.
      */
-    'auth.adminpassword' => '123',
+    // Debian: this password is in /var/lib/simplesamlphp/secrets.inc.php
+    //'auth.adminpassword' => '123',
     'admin.protectindexpage' => false,
     'admin.protectmetadata' => false,
 
@@ -87,7 +90,8 @@
      * A possible way to generate a random salt is by running the following command from a unix shell:
      * tr -c -d '0123456789abcdefghijklmnopqrstuvwxyz' </dev/urandom | dd bs=32 count=1 2>/dev/null;echo
      */
-    'secretsalt' => 'defaultsecretsalt',
+    // Debian: this secret is in /var/lib/simplesamlphp/secrets.inc.php
+    //'secretsalt' => 'defaultsecretsalt',
 
     /*
      * Some information about the technical persons running this installation.
@@ -849,3 +853,5 @@
     'trusted.url.domains' => array(),
 
 );
+
+require_once('/var/lib/simplesamlphp/secrets.inc.php');