]> git.pld-linux.org Git - packages/dokuwiki.git/blob - dokuwiki-http_auth-option.patch
- up to 2009-01-26 rc
[packages/dokuwiki.git] / dokuwiki-http_auth-option.patch
1 --- dokuwiki-rc2009-01-26/conf/dokuwiki.php~    2009-01-27 12:56:43.000000000 +0200
2 +++ dokuwiki-rc2009-01-26/conf/dokuwiki.php     2009-01-27 12:57:04.936215007 +0200
3 @@ -75,6 +75,7 @@
4  $conf['disableactions'] = '';            //comma separated list of actions to disable
5  $conf['sneaky_index']   = 0;             //check for namespace read permission in index view (0|1) (1 might cause unexpected behavior)
6  $conf['auth_security_timeout'] = 900;    //time (seconds) auth data is considered valid, set to 0 to recheck on every page view
7 +$conf['http_auth'] = 1;                  //allows HTTP authorization (SSO) from PHP_AUTH_USER/PHP_AUTH_PW variables
8  $conf['securecookie'] = 1;               //never send HTTPS cookies via HTTP
9  
10  /* Advanced Options */
11 --- dokuwiki-2007-06-26b/inc/auth.php~  2007-06-26 21:27:15.000000000 +0300
12 +++ dokuwiki-2007-06-26b/inc/auth.php   2007-12-19 00:40:14.598022033 +0200
13 @@ -60,7 +60,7 @@
14        if (!isset($_REQUEST['r'])) $_REQUEST['r'] = '';
15  
16        // if no credentials were given try to use HTTP auth (for SSO)
17 -      if(empty($_REQUEST['u']) && empty($_COOKIE[DOKU_COOKIE]) && !empty($_SERVER['PHP_AUTH_USER'])){
18 +      if($conf['http_auth'] && empty($_REQUEST['u']) && empty($_COOKIE[DOKU_COOKIE]) && !empty($_SERVER['PHP_AUTH_USER'])){
19          $_REQUEST['u'] = $_SERVER['PHP_AUTH_USER'];
20          $_REQUEST['p'] = $_SERVER['PHP_AUTH_PW'];
21        }
This page took 0.064595 seconds and 3 git commands to generate.