Edit report at https://pear.php.net/bugs/bug.php?id=13627&edit=1
ID: 13627
Updated by: daniel.oconnor@gmail.com
Reported By: caphrim007 at gmail dot com
Summary: Add crypt mode to File container
-Status: Open
+Status: Closed
Type: Bug
Package: Auth
Operating System: RHEL 4
Package Version: 1.6.2
PHP Version: 5.2.5
-Assigned To:
+Assigned To: doconnor
Roadmap Versions:
New Comment:
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: doconnor
This bug has been fixed in SVN.
If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).
If this was a problem with the pear.php.net website, the change should
be live shortly.
Otherwise, the fix will appear in the package's next release.
Thank you for the report and for helping us make PEAR better.
Previous Comments:
------------------------------------------------------------------------
[2009-12-25 11:50:30] metz
-Type: Feature/Change Request
+Type: Bug
-Package Version: 1.6.1
+Package Version: 1.6.2
with Auth 1.6.2. & File_Passwd 1.1.7 you HAVE to set a mode - otherwise
authentication is not possible against a authbasic-File
changed Type to "bug" accordingly.
------------------------------------------------------------------------
[2008-04-08 12:21:39] caphrim007
Description:
------------
The File_Passwd staticAuth method supports a $mode which isn't set by
default in File_Passwd 1.1.6. Regardless, it supports 3 methods (md5,
des and sha).
It'd be nice if the File container also supported sending these options.
By default, the only option it allows is the type
To support the new option, you'd just need to add the following to
_setDefaults in the File container.
$this->options['mode'] = 'des';
Or whatever you want the default to be.
And change the fetchData method to use it
return File_Passwd::staticAuth($this->options['type'], $this->pwfile,
$user, $pass, $this->options['mode']);
Thanks
------------------------------------------------------------------------