[dev] Re: [imp] custom login
Mike Cochrane
mike at graftonhall.co.nz
Wed Jan 22 00:28:28 PST 2003
And this time I'll attach the file.
> ----- Message from mike at graftonhall.co.nz ---------
> Date: Wed, 22 Jan 2003 00:23:21 +1300
> From: Mike Cochrane <mike at graftonhall.co.nz>
> Reply-To: Mike Cochrane <mike at graftonhall.co.nz>
> Subject: [dev] Re: [imp] custom login
> To: Ronnie Garcia <ronnie at mk2.net>, imp at lists.horde.org, Horde Dev List
<dev at lists.horde.org>
>
> Attached is custom.php which goes into horde/lib/auth/ and customize to suit
> you. What it does is transparently featches the user's login and password by
> what ever means then then tries to authenicate IMP using these credentials.
>
> Here's sort of what I use in horde authenication config:
> $conf['auth']['driver'] = 'composite';
> $conf['auth']['params']['loginscreen_switch'] = '_horde_select_loginscreen';
> $conf['auth']['params']['drivers']['imp'] = array('driver' => 'application',
> 'params' => array('app' =>
> 'imp'));
> $conf['auth']['params']['drivers']['custom'] = array('driver' => 'custom',
> 'params' => null);
> function _horde_select_loginscreen() {
> $custom_auth = &Auth::singleton('custom');
> if (!$custom_auth->transparent()) {
> return 'imp';
> } else {
> return 'custom';
> }
> }
>
> Basically it authenticates with the custom driver else points you at the IMP
> login screen.
>
> Good Luck,
>
> - Mike :-)
>
>
> > ----- Message from ronnie at mk2.net ---------
> >
> > At 18:30 21/01/2003 +1300, you wrote:
> > >Just did the same things here in CVS Head by writting a transparent login
> > >driver.
> >
> > Hi Mike,
> > I'm interrested in doing such a thing too. Any whance you make this driver
> > public ?
> >
> > Rgds,
> > Ronnie.
>
>
> --
> Horde developers mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org
>
>
>
> ----- End message from mike at graftonhall.co.nz -----
More information about the dev
mailing list