[dev] I want do develop a CAS SSO Auth driver
LALOT Dominique
dom.lalot at gmail.com
Thu Apr 21 08:42:25 UTC 2011
OK, I will try that option if it can do the work.
There was also in conf.php a use of composite driver and a dynamic selection
of the auth driver. Is the code still valid?
If not what can I do?
Thanks
Dom
/* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */
$conf['auth']['params']['drivers']['cas_drv']['driver'] = 'cas';
$conf['auth']['params']['drivers']['cas_drv']['params']['hostspec'] = '
auth.univ.fr';
$conf['auth']['params']['drivers']['cas_drv']['params']['hostport'] = 443;
$conf['auth']['params']['drivers']['cas_drv']['params']['hostpath'] = '';
$conf['auth']['params']['drivers']['ldap_drv']['driver'] = 'ldap';
$conf['auth']['params']['drivers']['ldap_drv']['params']['hostspec'] =
'annuaire.univ:389 anubis.univ.fr:389';
$conf['auth']['params']['drivers']['ldap_drv']['params']['basedn'] =
'ou=people,dc=univ,dc=fr';
..
$conf['auth']['list_users']='list';
$conf['accounts']['driver'] ='ldap';
$conf['accounts']['params']['host'] ='annuaire.univ.fr:389
anubis.univ.fr:389';
..
$conf['auth']['params']['admin_driver'] = 'ldap_drv';
$conf['auth']['params']['loginscreen_switch'] = '_horde_select_loginscreen';
if (!function_exists('_horde_select_loginscreen')) {
function _horde_select_loginscreen() {
# if (preg_match('|^/horde/rpc.php|',$_SERVER['REQUEST_URI']) ||
$GLOBALS['browser']->isMobile()) {
if (preg_match('|^/horde/rpc.php|',$_SERVER['REQUEST_URI'])) {
return 'ldap_drv';
}
return 'cas_drv';
}
}
2011/4/21 Jan Schneider <jan at horde.org>
>
> Zitat von LALOT Dominique <dom.lalot at gmail.com>:
>
>
> Hello,
>>
>> I am trying to make a new driver. There was a driver in horde3 developped
>> by
>> nancy2 french university. I'm trying to adapt in horde 4 but I need some
>> help.
>> In Horde 4, Auth drivers used _getLoginScreen($app, $url);
>>
>> There is no more usage of that method. But CAS driver needs to redirect to
>> CAS server login page. That's not a problem with shibboleth as it has been
>> done before at the apache level.
>>
>> How can I do that?
>>
>
> You don't. Admins do: $conf[auth][alternate_login]
>
> Jan.
>
> --
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
>
> --
> Horde developers mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org
>
--
Dominique LALOT
Ingénieur Systèmes et Réseaux
http://annuaire.univmed.fr/showuser.php?uid=lalot
More information about the dev
mailing list