PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » File Formats » File_Passwd » Bug #5532

File_Passwd_Authdigest::changePasswd deletes all other realms for the user

Details

Submitted2005-09-27 05:22 UTC
Fromchrishealy at internode dot on dot net
Assignedmike
StatusClosed
PackageFile_Passwd
PHP Version5.0.2
OSWindows XP
Roadmaps(Not assigned)

Comments

[2005-09-27 05:22 UTC] chrishealy at internode dot on dot net

Description:
------------
The Pear class File_Passwd_Authdigest::changePasswd ( release 1.1.5 ) deletes all the realms for the user other than the realm for which the password is being changed.

In Authdigest.php
function changePasswd($user, $realm, $pass)
uses delUser
where it should be using delUserInRealm

This change resolves the problem.
function changePasswd($user, $realm, $pass)
{
if (PEAR::isError($error = $this->delUserInRealm($user, $realm))) {
return $error;
} else {
return $this->addUser($user, $realm, $pass);
}
}