[horde] Hacking passwd to work in H4

stephan at admin.nabira.de stephan at admin.nabira.de
Tue Jul 12 12:44:46 UTC 2011


Hi,

I was trying out passwd from the git-repository with H4 and realized  
that my browser is waiting indefinetely after a successful password  
change.

I remember to have read that this is due to a design problem which  
prevents passwd from resetting the credentials for all applications  
and that a forced logout was discussed as workaround. But it seams  
this is not implemented yet, is it?

I tried to force a logout myself by inserting into  
passwd/lib/Passwd.php on line 109 the following code:
$GLOBALS['registry']->clearAuth(true);

This however does not work quite as expected. I get logged out  
alright, but the user does not see this. He gets the "Password  
sucessfully changed" screen with a menu-bar on the left continually  
showing "Loading..." and a rudimentary top menu bar.

If I click on any of the remaining links or buttons I get  
functionality as far as a logged out user gets (for example filing  
problems seems to be possible). If I click on the logout button, I get  
the login-screen as I would like. But I'm not sure all users will try  
that.

Any ideas on a more elegant solution than my brute-force one?

Greetz
Stephan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.horde.org/archives/horde/attachments/20110712/773fe395/attachment.bin>


More information about the horde mailing list