Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.6.4

Bug #13627 Add crypt mode to File container
Submitted: 2008-04-08 16:21 UTC
From: caphrim007 Assigned: doconnor
Status: Closed Package: Auth (version 1.6.2)
PHP Version: 5.2.5 OS: RHEL 4
Roadmaps: (Not assigned)    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 46 + 43 = ?

 
 [2008-04-08 16:21 UTC] caphrim007 (Tim Rupp)
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

Comments

 [2009-12-25 16:50 UTC] metz (Michael 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.
 [2012-01-24 18:23 UTC] doconnor (Daniel O'Connor)
-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.