[horde] IMP preauthenticate hook - choosing server - working solution

Jan Schneider jan at horde.org
Mon Nov 28 11:21:13 UTC 2011


Zitat von Peter Stamfest <peter at stamfest.at>:

> Hello List, hello Christopher,
>
> [I just subscribed to the ML, so I cannot easily reply to current threads]
>
> Regarding the issue to choose a mail server backend in the IMP
> preauthenticate hook I seem to have found a working solution:
>
>         public function preauthenticate($userId, $credentials)
>         {
>                 // magically set $key
>                 $credentials['imp_server_key'] = $key;
>
>                 return array('credentials' => $credentials);
>         }
>
> It took me some time of frustrating googling and trial-and-error before
> I bit the bullet and read the code - the documentation clearly mentions
> the 'server' key, so this is either a bug in the code or the docs.

Then please create a bug ticket or update the wiki if this is where  
you got the hook from.

Jan.

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



More information about the horde mailing list