[cvs] [Wiki] changed: MIMPHowTo
Wiki Guest
wikiguest at horde.org
Fri Aug 18 07:19:21 PDT 2006
guest [193.52.64.50] Fri, 18 Aug 2006 07:19:20 -0700
Modified page: http://wiki.horde.org/MIMPHowTo
New Revision: 2.4
Change log: added cassified horde example
@@ -27,5 +27,40 @@
}
</code>
This will give you either the IMP or the MIMP login screen, depending on the browser you use.
+
+
+
+Here is The code for a CASSIFIED Horde
+
+$conf['auth']['params']['drivers'] = array(
+ 'imp' => array('driver' => 'cas',
+ 'params' => array(
+ 'hostspec' => 'cas.example.com',
+ 'hostport' => 443,
+ 'hostpath' => '/',
+ 'proxyback' => 'https://webmail.example.com/horde/casProxy.php',
+ 'tmpdir' => Horde::getTempDir(),
+ 'authorisation' => true,
+ 'logout' => true,
+ 'debug' => false,
+ 'debug_file' => '/var/log/horde-v3.log',
+ )),
+ 'mimp' => array('driver' => 'application',
+ 'params' => array('app' => 'mimp')));
+
+$conf['auth']['params']['loginscreen_switch'] = '_horde_select_loginscreen';
+
+if (!function_exists('_horde_select_loginscreen')) {
+ function _horde_select_loginscreen()
+ {
+ require_once 'Horde/Browser.php';
+ $browser = new Browser();
+ if ($browser->isMobile()) {
+ return 'mimp';
+ }
+ return 'imp';
+ }
+}
+
More information about the cvs
mailing list