6.0.0-git
2024-04-26
Last Modified 2006-08-18 by Guest

MIMP HowTo

If you want to setup MIMP in parallel with IMP, you need the composite authentication driver with a browser switch.

To use the composite driver select it from the dropdown list in the authentication tab of the configuration interface or change $conf['auth']['driver'] to 'composite' in horde/config/conf.php.

In horde/config/conf.php, insert the following code:


$conf['auth']['params']['drivers'] = array(

    'imp' => array('driver' => 'application',

                   'params' => array('app' => 'imp')),

    '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';

    }

}

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';

    }

}