[horde] Composite auth driver

Jan Schneider jan at horde.org
Mon Sep 13 13:19:41 PDT 2004


Zitat von Joaquim Homrighausen <joho at webbplatsen.se>:

>
> I've looked at the Wiki-text, and tried to find other postings that would do
> what I want to do, but so far I haven't been able to get it to work, nor find
> any more useful material.
>
> In conf.php (Horde, HEAD20040913):
>
> $conf['auth']['driver'] = 'composite';
>
> $conf['auth']['params']['drivers']['wps_sql']['driver'] = 'sql';
> $conf['auth']['params']['drivers']['wps_sql']['params'] =
>     array ('hostspec' => 'server.net',
>            'phptype' => 'mysql',
>            'protocol' => 'tcp',
>            'username' => 'username',
>            'password' => 'password',
>            'database' => 'hordesqlusers');
>
> (do I need to add 'table' => 'horde_users' here, or is that assumed?)
>
> $conf['auth']['params']['drivers']['hordeapp']['driver'] = 'application';
> $conf['auth']['params']['drivers']['hordeapp']['params']['app'] = 'imp';
>
> $conf['auth']['params']['loginscreen_switch'] = '_horde_select_loginscreen';
> if (!function_exists('_horde_select_loginscreen')) {
>     function _horde_select_loginscreen()
>         {
>         return 'hordeapp';
>         }
> }
>
>
> If I enter a username that is only found in hordesqlusers (table: 
> horde_users),
> I get a login failure. If I enter a username that is found in the IMAP server
> against which IMP authenticates, I get logged in as usual.

Of course. Your _horde_select_loginscreen always returns 'hordeapp', so
horde will always use this authentication scheme.

Jan.

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



More information about the horde mailing list