[dev] hordeauth capability patch for IMP

Vijay Mahrra vijay.mahrra at es.easynet.net
Thu Aug 28 04:44:13 PDT 2003


I've patched IMP to support a Gollem-style hordeauth capability.

The reason this was written was to make the IMP 'double-login' problem less of
one and to enable the user to select one of several servers but using the
same horde login credentials for authentication.

config/servers.php.dist
login.php
redirect.php
templates/login/login.inc

1. In servers.php, there is an extra option in the $servers array 'hordeauth'.
 (I patched the servers.php.dist copied blurb from Gollem to reflect this.)

2. If hordeauth is not empty (thank you for explaining and removing my
fixation on array_key_exists chuck!) a new extra servers list is displayed on
the IMP login page for each server which has hordeauth enabled.  If the list
is empty, no extra 'hordeauth' list is displayed.

3. If a server entry has enabled hordeauth, it is displayed in the standard
list of servers (i did this to avoid confusion between the server lists
having the same entries, so to allow a user to use hordeauth and enter
different login credential requires an extra entry in $servers)

I hope this is useful.

Vijay
--
vijay mahrra                        office: +34 917894652
systems developer/administrator     mobile: +34 679993442
easynet españa (madrid)         http://www.es.easynet.net


-------------- next part --------------
A non-text attachment was scrubbed...
Name: login.inc.diff
Type: text/diff
Size: 5189 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20030828/2a2652f8/login.inc-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: login.php.diff
Type: text/diff
Size: 919 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20030828/2a2652f8/login.php-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: redirect.php.diff
Type: text/diff
Size: 3867 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20030828/2a2652f8/redirect.php-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: servers.php.dist.diff
Type: text/diff
Size: 1972 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20030828/2a2652f8/servers.php.dist-0001.bin


More information about the dev mailing list