[horde] _username_hook_frombackend not used by Horde, only by IMP

Jan Schneider jan at horde.org
Sat Feb 5 09:39:28 PST 2005


Zitat von Oscar Retana <oscar at gridshield.net>:

> Hallo Jan.
>
> I use '_username_hook_frombackend' for modifying the username (add
> virtual domain part). But,
> according to what you say, I should use the
> '_horde_hook_preauthenticate' to change the username used by Horde
> authentication.
>
> The problem is that, according to the example included in hooks.php, the
> return value for is function seems to be a boolean value. If I return
> the modifyed username (as in '_username_hook_frombackend') will that
> value be used at all?

True. Forget what I said.

> Jan Schneider wrote:
>> Zitat von Oscar Retana <oscar at gridshield.net>:
>>
>>> I wrote a simple _username_hook_frombackend function that ensures the
>>> username is always in the format "user at domain.com", using a default
>>> domain if the user didn't provide one.
>>>
>>> But, according to my imap server logs, Horde sends to the imap server
>>> only the "user" without the "@domain.com". Then comes the IMP
>>> authentication and it *does* use the full format "user at domain.com".
>>>
>>> So, I suspect that Horde is not using my _username_hook_frombackend.
>>>
>>> Am I doing it in the right way? Is this the hook I should use?
>>
>>
>> No, you should use the preauthenticate hook.

Jan.

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


More information about the horde mailing list