[horde] Composite auth driver

Joaquim Homrighausen joho at webbplatsen.se
Mon Sep 13 13:12:36 PDT 2004


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.


-Joaquim



More information about the horde mailing list