[horde] Display domain in login window
Jan Schneider
jan at horde.org
Wed Apr 20 17:52:51 UTC 2011
Zitat von Antoine Heskia <horde at heskia.net>:
> Hi,
>
> I have upgraded to Horde4/IMP5 recently and added the virtual domain
> handling hook in horde/config/hooks.php as suggested by you:
> public function preauthenticate($userId, $credentials)
> {
> if (strpos($userId,'@')===false) {
> $vdomain = preg_replace('/^((web)?mail|imp)\./i', '',
> $_SERVER['HTTP_HOST']);
> $userId=Horde_String::lower($userId . '@' . $vdomain);
> } else {
> $userId=Horde_String::lower($userId);
> }
>
> return array(
> 'userId' => $userId
> );
> }
>
> The last thing I miss is how to make the domain name displayed in
> the login windows as it used to be in horde3/IMP4 (at the right of
> the username field) ?
This is no longer supported. Or at least it hasn't been ported to the
new authentication infrastructure yet.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the horde
mailing list