[horde] _horde_hook_postauthenticate()

Chuck Hagenbuch chuck at horde.org
Tue Jun 17 15:10:07 UTC 2008


Quoting Liam Hoekenga <liamr at umich.edu>:

> So, I'm looking at leveraging _horde_hook_postauthenticate() for  
> some stuff I'm doing elsewhere... but I've noticed, it only seems to  
> get invoked when I'm using IMP.
>
> if (!function_exists('_horde_hook_postauthenticate')) {
>     function _horde_hook_postauthenticate($userID, $credential, $realm)
>     {
>         if( $_SERVER['REMOTE_USER'] == 'liamr' ) {
>             return false;
>         } else {
>             return true;
>         }
>     }
> }
>
> When I go to IMP,  I get a "login failed".  If I try to access Turba  
> and Ingo, it lets me in.  Is this because Turba and Ingo don't have  
> the concept of their own login?

It should be invoked on initial authentication. IMP does extra auth  
checks because of the IMAP stuff; Turba and Ingo don't need it because  
you've already logged in to Horde.

-chuck


More information about the horde mailing list