1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-horde-1.13.0/root/etc/e-smith/templates/home/httpd/html/horde/config/conf.php/125Authentication mezzanine_patched_e-smith-horde-1.13.0/root/etc/e-smith/templates/home/httpd/html/horde/config/conf.php/125Authentication |
2 |
--- e-smith-horde-1.13.0/root/etc/e-smith/templates/home/httpd/html/horde/config/conf.php/125Authentication 2006-09-28 22:14:12.000000000 -0500 |
3 |
+++ mezzanine_patched_e-smith-horde-1.13.0/root/etc/e-smith/templates/home/httpd/html/horde/config/conf.php/125Authentication 2006-09-28 21:59:53.000000000 -0500 |
4 |
@@ -3,6 +3,9 @@ |
5 |
$conf['auth']['checkbrowser'] = true; |
6 |
$conf['auth']['alternate_login'] = false; |
7 |
$conf['auth']['redirect_on_logout'] = false; |
8 |
-$conf['auth']['params']['app'] = 'imp'; |
9 |
-$conf['auth']['driver'] = 'application'; |
10 |
+{ |
11 |
+my $Mimp = $mimp{'status'} || 'disabled'; return "\$conf[\'auth\'][\'driver\'] = \'composite\'\;" unless ($Mimp eq "disabled"); |
12 |
+$OUT = '$conf[\'auth\'][\'params\'][\'app\'] = \'imp\'; |
13 |
+$conf[\'auth\'][\'driver\'] = \'application\';' |
14 |
+} |
15 |
|
16 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-horde-1.13.0/root/etc/e-smith/templates/home/httpd/html/horde/config/conf.php/999mimp mezzanine_patched_e-smith-horde-1.13.0/root/etc/e-smith/templates/home/httpd/html/horde/config/conf.php/999mimp |
17 |
--- e-smith-horde-1.13.0/root/etc/e-smith/templates/home/httpd/html/horde/config/conf.php/999mimp 1969-12-31 18:00:00.000000000 -0600 |
18 |
+++ mezzanine_patched_e-smith-horde-1.13.0/root/etc/e-smith/templates/home/httpd/html/horde/config/conf.php/999mimp 2006-09-28 22:07:30.000000000 -0500 |
19 |
@@ -0,0 +1,24 @@ |
20 |
+// 999mimp |
21 |
+{ |
22 |
+my $Mimp = $mimp{'status'} || 'disabled'; return "#Mimp login is currently not enabled. To enable - config set mimp service status enabled" |
23 |
+ unless ($Mimp eq "enabled"); |
24 |
+$OUT = '$conf[\'auth\'][\'params\'][\'drivers\'] = array( |
25 |
+ \'imp\' => array(\'driver\' => \'application\', |
26 |
+ \'params\' => array(\'app\' => \'imp\')), |
27 |
+ \'mimp\' => array(\'driver\' => \'application\', |
28 |
+ \'params\' => array(\'app\' => \'mimp\'))); |
29 |
+$conf[\'auth\'][\'params\'][\'loginscreen_switch\'] = \'_horde_select_loginscreen\'; |
30 |
+ |
31 |
+if (!function_exists(\'_horde_select_loginscreen\')) \{ |
32 |
+ function _horde_select_loginscreen() |
33 |
+ \{ |
34 |
+ require_once \'Horde/Browser.php\'; |
35 |
+ $browser = &new Browser(); |
36 |
+ if ($browser->isMobile()) \{ |
37 |
+ return \'mimp\'; |
38 |
+ \} |
39 |
+ return \'imp\'; |
40 |
+ \} |
41 |
+\}' |
42 |
+} |
43 |
+ |