[horde] passwd with Horde 4

Ralf Lang lang at b1-systems.de
Fri Jun 10 22:01:12 UTC 2011


Am Donnerstag, 9. Juni 2011, 20:19:17 schrieb Kareem Dana:
> I just saw Ralf's post, but I didn't want to hijack his thread with my own
> passwd question. Right now I used passwd with the poppassd driver on Horde
> 3 in production and am gearing up to move to Horde 4.
> 
> I am using the passwd code from git which I downloaded on June 6. It works,
> but does not reset my credentials within Horde, so I have to log out and
> log back in. My system is setup such that Horde authenticates via Imp and
> Imp uses IMAP Authentication. When I change my password with passwd, it
> successfully changes the password but IMP keeps trying to authenticate
> with the old password. I understand this is unreleased code but I'm
> willing and able to make some code changes to get this to work.
> 
> Inside passwd/lib/Passwd.php I found the function resetCredentials which
> calls setAuthCredential() to set the new password but that either doesn't
> work or is not enough to get IMP to use the new password when talking to
> the IMAP server. Does something else need to be called here or some cached
> IMAP sessions invalidated? Any tips would be helpful as I'm familiar with
> PHP but not the horde framework.
> 
> Thanks,
> Kareem Dana

Hi Kareem, can you please file a bug report?
I am on a long weekend holiday and might forget, 
but maybe you can patch it yourself.

What resetCredentials basically needs to do (but doesn't) is

 * look if the authentication backend is Horde_Auth_Application
 * If so, call 
 $GLOBALS['registry']->setAuthCredential('password', $new_password, $appname);
after 
 $GLOBALS['registry']->setAuthCredential('password', $new_password);


-- 
Ralf Lang
Linux Consultant / Developer

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537


More information about the horde mailing list