[horde] composite driver example?

Jan Schneider jan at horde.org
Tue May 18 10:16:17 PDT 2004


Zitat von Vilius Sumskas <vilius at lnk.lt>:

> Cituojama Chuck Hagenbuch <chuck at horde.org>:
>
>> Quoting Vilius Sumskas <vilius at lnk.lt>:
>>
>>> Ok. This time I have a simple one:
>>
>> Yup, this one I can follow. ;)
>>
>>> $conf['auth']['params']['loginscreen_switch'] = 
>>> '_horde_select_loginscreen';
>>>
>>> if (!function_exists('_horde_select_loginscreen')) {
>>>     function _horde_select_loginscreen() {
>>>        return 'imp';
>>>     }
>>> }
>>
>> Here you use 'imp'.
>>
>>> $conf['auth']['driver'] = 'composite';
>>> $conf['auth']['params']['drivers']['email']['driver'] = 'application';
>>> $conf['auth']['params']['drivers']['email']['params'] = array('app' 
>>> => 'imp');
>>
>> But here you use 'email' for the driver name. Those need to match.
>
>
> Oh, now I understand. You define drivers, then some user made function must
> decide which driver to use. They must match by driver name not driver type.
> Thanks, now it works :).

I also started a composite driver howto on
http://wiki.horde.org/display.php?page=AuthCompositeHowTo

Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting.php



More information about the horde mailing list