Home » File Formats » File_Passwd » Bug #5532
File_Passwd_Authdigest::changePasswd deletes all other realms for the user
Details
| Submitted | 2005-09-27 05:22 UTC |
|---|---|
| From | chrishealy at internode dot on dot net |
| Assigned | mike |
| Status | Closed |
| Package | File_Passwd |
| PHP Version | 5.0.2 |
| OS | Windows 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);
}
}