[horde] username always null in prefs_init hooks with LDAP auth

Guenter Bartsch guenter.bartsch at gmail.com
Fri Oct 11 16:46:49 UTC 2013


found a solution:

delete FROM horde_prefs WHERE pref_uid LIKE  '%guenter%' ;
Query OK, 3 rows affected (0.04 sec)

will trick horde into thinking the user has never logged in and indeed
it will call the prefs init hooks which solves our problem :)

thanks again for the support!

   guenter


On Fri, Oct 11, 2013 at 6:31 PM, Guenter Bartsch
<guenter.bartsch at gmail.com> wrote:
> Jan,
>
> On Tue, Oct 8, 2013 at 10:54 AM, Jan Schneider <jan at horde.org> wrote:
>
>>> > The hooks is only called if the preference or identities are not set yet,
>>> > i.e. for guests or new users.
>>>
>>> hmm - actuall my log output clearly shows the hook is being called
>>> each time I log in so this is (for whatever reason) not the problem in
>>> our case.
>>>
>>> the real issue is no username is passed
>>
>> Because it is called for the guest (unauthenticated) user, which has
>> never a preference stored.
>
> ah - that explains the behavior :)
>
> ist there any way I could 'reset' an account back to a state before
> the first login so the hook would get called? would be useful for
> testing purposes as well.
>
> thanks,
>
>    guenter


More information about the horde mailing list