[horde] Preauthenticate Hook - problems with retrieving $userId

Steffen skhorde at smail.inf.fh-bonn-rhein-sieg.de
Thu Dec 5 08:57:09 UTC 2013


On Wed, 4 Dec 2013, Michael M Slusarz wrote:

> Quoting Florian Schmidt <florian.schmidt787 at googlemail.com>:
>
>> so, well, the examples in the preauthentication hook, where the userId is
>> checked to be not equal "foo" (or Joe?) are not working for me. Does that
>> mean my config of horde is wrong or that the examples are not right 
>> anymore?
>> Either $userId is supposed to be not empty (as it is used in the
>> preauthenticate hook example) or it should be used later (then I do get the
>> example wrong)?
>
> $userId can be empty.  That is perfectly valid.  This is a 
> **pre**authentication hook - it takes place before authentication, when there 
> may be no user id available (i.e. transparent authentication).

@Florian: Think of "if(empty($userId))" as a guest session, e.g. when the 
login form is displayed. The authentification could succeed even without 
userId depending on the auth scheme.

-- 
Steffen


More information about the horde mailing list