[horde] Login Redirect Problem

Jan Schneider jan at horde.org
Mon Jul 17 13:26:38 PDT 2006


Zitat von carlos maca <macacohorde at gmail.com>:

> Hi, i had made some changers, i use the auth with aplications to IMP,
> everything was okay. But, i had change my login process to accept the vinfo
> function hook, so in the login page, appears the domain fixed, so the use
> can login with only the username. but, after you click on connect, the
> process looks like it took the authentication, but it has a failure to
> redirect the page. and a page apperas saying: The page in not redirecting
> correctly, it´s says that "the metod that the server is redirecting dont
> permit the complete of the process."

What is producing this message?

> What can i do?!, where is the problem, maybe its on the redirect.php?, here
> is a copy of my vinfo hook ->
>
>   $HTTP_HOST = ' mail.pop-ro.rnp.br';
>   $_SESSION['imp']['user'] = 'myname';
>   $vdomain  = 'pop-ro.rnp.br';
>   $username = 'myname_mydomain_com';
>
>  if (!function_exists('_imp_hook_vinfo')) {
>       function _imp_hook_vinfo($type = 'username')
>       {
>          $vdomain = getenv('HTTP_HOST');
>          $vdomain = preg_replace('|^mail\.|i', '', $vdomain);
>        $vdomain = String::lower($vdomain);
>
>           if ($type == 'username') {
>           return preg_replace('|\.|', '_', $_SESSION['imp']['user'] . '_' .
> $vdomain);
>           } elseif ($type == 'vdomain') {
>               return $vdomain;
>           } else {
>               return PEAR::raiseError('invalid type: ' . $type);
>           }
>       }
>           }
> -- 
> Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list