[horde] _username_hook_frombackend not used by Horde, only by IMP
Oscar Retana
oscar at gridshield.net
Fri Feb 4 15:05:01 PST 2005
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?
Thanks!
- Oscar.
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.
>
--
Oscar Retana
GridShield S.A.
Protección y Monitoreo de Redes
Tel: (506) 258-5757
Email: oscar at gridshield.net
Web: www.gridshield.net
More information about the horde
mailing list