[horde] H3 auth composite
webmaster at mairie-meyzieu.fr
webmaster at mairie-meyzieu.fr
Thu Aug 4 16:17:55 UTC 2011
Jan Schneider <jan at horde.org> a écrit :
>
> Zitat von webmaster at mairie-meyzieu.fr:
>
>> HI HORDE MASTERS !
>> I need a little of your time for a question. I try to make a double
>> authentification with horde. Is it possible ?
>>
>> I explain my problem. My horde session have an
>> authentification. Users may change their password. IMP should have
>> an other authentification where the login is the same but the
>> password won't be change by users.
>>
>> Is there a way to do it ?
>> Is there anybody do it ?
>
> That's the default behavior if you configure any authentication in
> Horde that is *not* application auth, and leave 'hordeauth' disabled
> in IMP's config/servers.php.
>
> Jan.
>
> --
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
>
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
Thanks a lot Jan for your answer.
That's working but my users needs to authenticate twice a time.
Is there a way to do something like that in my conf.php and pick up the right auth from sql without asking users (the login is the same in the two cases ? :
$conf['auth']['driver'] = 'composite';
// My ldap users for horde groupware :
$conf['auth']['params']['drivers']['groupwareauth']['driver'] = 'ldap';
$conf['auth']['params']['drivers']['groupwareauth']['params'] = array(
'hostspec' => 'localhost',
'basedn' => 'dc=xx',
etc...);
// My sql users for my imap server
$conf['auth']['params']['drivers']['mailauth']['driver'] = 'sql';
$conf['auth']['params']['drivers']['mailauth']['params'] = array(
'driverconfig' => 'horde',
'table' => 'horde_users',
etc...);
// The selection of the right driver by app
$conf['auth']['params']['loginscreen_switch'] = '_horde_select_loginscreen';
if (!function_exists('_horde_select_loginscreen')) {
function _horde_select_loginscreen() {
if ('XX' == 'imp') {
return 'mailauth';
}
return 'groupwareauth';
}
}
Where XX is the missing parameter for me... :-)
Is it possible ??
Aude MB
More information about the horde
mailing list