Re: Re: File_Passwd and shadow passwords
| From: | Aaron Gould | Date: | Thu, 12 May 2005 14:03:02 +0000 |
| Subject: | Re: Re: File_Passwd and shadow passwords | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19171@lists.php.net to get a copy of this message | ||
Michael Wallner wrote:
Thanks Michael! I found the archived post, and have modified it to use the programming style demonstrated in the docs (factory method for example). It works perfectly, although I will likely have to enhance the wrapper with an added third object. Apparently "/etc/shadow" holds an ID to the encrypted password in "/etc/shadow-"! It works as is, but I might as well keep consistent with my installed system... Thanks, -- Aaron Gould Programmer/Systems Administrator PARTS CANADACan anyone tell me if File_Passwd can work with shadow password files?Sorry for the late answer, but I'm currently lacking time. This question has been asked some time ago, please search the archive for a wrapper function; it basically creates two File_Passwd_Unix objects, one for /etc/passwd and one for /etc/shadow. Please note that you must not specify the password in the "extra" fields and that you need to define the extra fields map for the shadow file manually.