TR : [mimp] MIMP without IMP login
Akom
lists at akom2.2y.net
Thu Jul 3 11:29:32 PDT 2003
While this block may work for mobile devices, I wanted to be able to use mimp
directly when I want out of a normal browser (eg laptop over a wireless
connection, < 4kb/s). Dual login is annoying when it's that slow.
After taking apart the code for a bit, I found this in
mimp/lib/base.php :
---------------------------------------------
// If MIMP isn't responsible for Horde auth, and no one is logged into
// Horde, redirect to the login screen.
if (!(Auth::isAuthenticated() || (Auth::getProvider() == 'mimp'))) {
Horde::authenticationFailureRedirect();
}
---------------------------------------------
It seems to me that this logic is flawed...(first, if not authed - then send it
to main login, second - when mimp, send it to main login???) ... but since none
of it was interesting to me, I simply commented out the single line in the if,
to achieve the desired result - when I go directly to /horde/mimp/, I get mimp!
Actually commenting out all of it would be even faster.
Hope this helps someone trying to do the same thing...
Actually I was hoping that setting the "allow_guest" in registry.php for mimp
would achieve this but it doesn't...
Akom
>
> Quoting Dr Patrick Atlas <patrick.atlas at mg-france.fr>:
>
> > As I didn't find any archives for this list, here is my question:
>
> http://lists.horde.org/archives/mimp/
>
> > I tried to connect directly to the mimp module using
> > domain.com/horde/mimp address but it still asks for IMP
> > authentification (basic horde authentification on my system). What is
> > the way to connect to the mimp application with wap (failed till now)?
>
> $conf['auth']['driver'] = 'composite';
> $conf['auth']['params'] = array(
> 'drivers' => array('imp' => array('driver' => 'application',
> 'params' => array('app' => 'imp')),
> 'mimp' => array('driver' => 'application',
> 'params' => array('app' => 'mimp'))),
> 'loginscreen_switch' => '_horde_select_loginscreen'
> );
>
> if (!function_exists('_horde_select_loginscreen')) {
> function _horde_select_loginscreen()
> {
> require_once HORDE_BASE . '/lib/Browser.php';
> $browser = &new Browser();
> if ($browser->isMobile()) {
> return 'mimp';
> }
> return 'imp';
> }
> }
>
>
> -chuck
>
> p.s. authentification is not a word.
>
> --
> Charles Hagenbuch, <chuck at horde.org>
> "... It is not more light we need, but more warmth! We die of cold, not of
> darkness. It is not the night that kills, but the frost." - Miguel de
> Unamuno
>
> --
> mimp mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: mimp-unsubscribe at lists.horde.org
>
More information about the mimp
mailing list