[horde] Horde4/BCBreaking

Christopher Neuhaus cne at ruhrverband.de
Fri Nov 25 14:37:59 UTC 2011


Hi!

Are you really sure, this will work?

public function preauthenticate($userId, $credentials)
{
    // Do magic here to determine the preferred server.  Store the
preferred server key (from backends.php)
    // in $key

    $credentials['server'] = $key;

    return $credentials;
}

I get the right values in $credentials but authentication won`t work.

Best Regards

Christopher

>>
>> Hi Michael,
>>
>> while we where searching, why our H3-hook doesn`t work for H4, we found
>> f.e. that in imp/lib/Auth.php $_SERVER['HTTP_HOST'] is take for
>> identifying the users authentication host. This has to be changed for
>> each user who authenticates against a different server.
>
> No - this is only used if 'preferred' is set in backends.php.  Don't
> set preferred.
>
>> I think we are not alone with our problem. Perhaps you have an idea how
>> our solution could be realised in a imp preauthenticate() hook?
>
> public function preauthenticate($userId, $credentials)
> {
>     // Do magic here to determine the preferred server.  Store the
> preferred server key (from backends.php)
>     // in $key
>
>     $credentials['server'] = $key;
>
>     return $credentials;
> }
>
> michael
>
> ___________________________________
> Michael Slusarz [slusarz at horde.org]
>


-- 

Dipl.-Ing. Christopher Neuhaus

Ruhrverband
Abteilung Datenverarbeitung
Kronprinzenstr. 37
45128 Essen

Telefon: 0201/178-1531
Telefax: 0201/178-1545
E-Mail: cne at ruhrverband.de
Internet: www.ruhrverband.de


Verbandsrat: Dr. Bernhard Görgens, Vorsitzender
Vorstand: Prof. Dr.-Ing. Harro Bode, Vorsitzender, Norbert Frece

Der Ruhrverband ist verantwortlicher Träger der umfassenden Wasserwirtschaft im gesamten Flussgebiet
der Ruhr mit einem System von Talsperren zur Bewirtschaftung der Wassermengen und einem flächendeckenden
Netzwerk von Abwasserbehandlungsanlagen und Ruhrstauseen zur Reinhaltung der Gewässer für 60 Kommunen.



More information about the horde mailing list