[Tickets #9709] Virtual domain support
bugs at horde.org
bugs at horde.org
Thu Mar 24 17:22:51 UTC 2011
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/9709
------------------------------------------------------------------------------
Ticket | 9709
Created By | horde at heskia.net
Summary | Virtual domain support
Queue | IMP
Version | 5.0-RC1
Type | Enhancement
State | New
Priority | 1. Low
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
horde at heskia.net (2011-03-24 17:22) wrote:
In my Horde3/IMP4, I used to have a custom hook function in the
horde/imp/config/hooks.php to support multidomains that I am hosting.
The user points its browser to mail.domain.com, the the login window
displays "@domain.com" at the end of the username field and horde/imp
provides username at domain.com to the IMAP server
(qmail/vpopmail/courier-imap).
This function looks like this:
if (!function_exists('_imp_hook_vinfo')) {
function _imp_hook_vinfo($type = 'username')
{
$vdomain = getenv('HTTP_HOST');
$vdomain = preg_replace('|^(web)?mail\.|i', '', $vdomain);
$vdomain = preg_replace('|^imp\.|i', '', $vdomain);
$vdomain = String::lower($vdomain);
if ($type == 'username') {
if ($vdomain == '') {
return $_SESSION['imp']['user'];
} else {
return (preg_replace('|@.*$|', '',
$_SESSION['imp']['user']) . '@' . $vdomain);
}
} elseif ($type == 'vdomain') {
return $vdomain;
} else {
return PEAR::raiseError('invalid type: ' . $type);
}
}
}
I did not find such a feature in Horde4/IMP5.
I have tried to play a bit with the hook public function
authusername($userId, $toHorde) in horde/config/hooks.php
but users still need to provide user at domain.com to logon (and they are
recognized as user at domain.com@domain.com by horde) and the logon
window does not displays "@domain.com" after the username field.
Am I missing something ?
Thanks for your support,
Antoine.
More information about the bugs
mailing list