[horde] Hacking passwd to work in H4

Stephan Kleber stephan at admin.nabira.de
Sun Jul 24 14:18:49 UTC 2011


Hi Jan,

thanks, but you did not read what I wrote.

> You must not throw the exception there. You need to pass it to
> authenticateFailure().

I did NOT throw the Exception, I passed it as you proposed before:

$registry->clearAuth(true);
$registry->authenticateFailure('horde', new Horde_Auth_Exception(
  'Ihr Passwort wurde erfolgreich geändert. '
  . 'Bitte melden Sie sich neu an.',
  Horde_Auth::REASON_MESSAGE) );

However the Exception get's thrown anyway. After clicking "Change
Password" I get displayed the following page (as Admin):

=================================================================
Ein schwerer Fehler ist aufgetreten:
Ihr Passwort wurde erfolgreich geändert. Bitte melden Sie sich neu an.

1. Passwd::resetCredentials() /var/www-ssl/horde4/passwd/main.php:210

Details
Die vollständige Fehlermeldung wurde in Hordes Logdatei geschrieben und
für Administratoren weiter unten ausgegeben. Benutzer, die keine
Administratoren sind, bekommen diese Details nicht zu sehen.

Horde_Auth_Exception Object
(
    [details] =>
    [message:protected] => Ihr Passwort wurde erfolgreich geändert.
Bitte melden Sie sich neu an.
    [string:Exception:private] =>
    [code:protected] => 5
    [file:protected] => /var/www-ssl/horde4/passwd/lib/Passwd.php
    [line:protected] => 117
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www-ssl/horde4/passwd/main.php
                    [line] => 210
                    [function] => resetCredentials
                    [class] => Passwd
                    [type] => ::
                    [args] => Array
                        (
                            [0] => blibb
                            [1] => bob
                        )

                )

        )

    [previous:Exception:private] =>
)
=================================================================

Why?

Thanks,
Stephan


More information about the horde mailing list