|
From: Jamie C. <jca...@we...> - 2006-02-14 23:39:39
|
There is another way it could happen - but I will deal with that in Webmin 1.270.<br /><br />=A0- Jamie<br /><br />On 15/Feb/2006 03:15 Dave Isaacs wrote .. <blockquote type=3D"cite"> <p><font size=3D"2">In my case the password is NOT blank (I am trying to change the password of the user I am currently logged in as).=A0 Could there be another problem?</font></p> <p><font size=3D"2">Thanks</font> </p> <p><font size=3D"2">Dave I</font> </p> <p><font size=3D"2">-----Original Message-----</font> <br /><font size=3D"2">From: web...@li... [<a href=3D"_unsafe_link_">mailto:web...@li...</a>] On Behalf Of Jamie Cameron</font></p> <p><font size=3D"2">Sent: Tuesday, February 14, 2006 3:14 AM</font> <br /><font size=3D"2">To: web...@li...</font> <br /><font size=3D"2">Subject: RE: [webmin-l] Change Password error</font> </p> <br /> <p><font size=3D"2">Hi Dave,</font> <br /><font size=3D"2">Thanks, I see the cause of this problem now ... it can happen if changing the password of a user whose password is currently blank. The next release of Webmin will fix it though.</font></p> <p><font size=3D"2">=A0- Jamie</font> </p> <p><font size=3D"2">-----Original Message-----</font> </p> <p><font size=3D"2">From:=A0 Dave Isaacs <dav...@en...></font> <br /><font size=3D"2">Subj:=A0 RE: [webmin-l] Change Password error</font> <br /><font size=3D"2">Date:=A0 Tue 14 Feb 2006 1:08 am</font> <br /><font size=3D"2">Size:=A0 4K</font> <br /><font size=3D"2">To:=A0 "'web...@li...'" <web...@li...></font> </p> <p><font size=3D"2">=A0=A0=A0=A0 RE: [webmin-l] Change Password error</font> <br /><font size=3D"2">=A0=A0=A0 I am using the standard Change Password (passwd) module that is packaged with Webmin 1.260. </font> <br /><font size=3D"2">=A0 Thanks </font> <br /><font size=3D"2">=A0 Dave I </font> <br /><font size=3D"2">=A0 -----Original Message----- </font> <br /><font size=3D"2">From: web...@li... [<a href=3D"_unsafe_link_">mailto:web...@li...</a>] On Behalf Of Jamie Cameron</font></p> <p><font size=3D"2">=A0 Sent: Saturday, February 11, 2006 4:56 AM </font> <br /><font size=3D"2">To: web...@li... </font> <br /><font size=3D"2">Subject: Re: [webmin-l] Change Password error </font> <br /><font size=3D"2"> </font> <br /><font size=3D"2">=A0 Hi Dave, </font> <br /><font size=3D"2">That looks like a bug in Webmin. </font> <br /><font size=3D"2">Which module are you doing the password change in though? It seems that the caller of unix_crypt is passing in the wrong parameters.</font></p> <p><font size=3D"2">=A0 - Jamie </font> <br /><font size=3D"2">=A0 -----Original Message----- </font> <br /><font size=3D"2">=A0 From: Dave Isaacs dav...@en... </font> <br /><font size=3D"2">Subj: [webmin-l] Change Password error </font> <br /><font size=3D"2">Date: Sat 11 Feb 2006 5:01 am </font> <br /><font size=3D"2">Size: 2K </font> <br /><font size=3D"2">To: 'web...@li...' web...@li... </font> <br /><font size=3D"2">=A0=A0 Message </font> <br /><font size=3D"2">=A0Previously, whenI was using the Webmin 1.230 (on RedHat EL3)passwd module, there were no problems. </font> <br /><font size=3D"2"> </font> <br /><font size=3D"2">Now, using the Webmin 1.250 version, I get the error Failed to change password : Failed to encrypt password :. </font> <br /><font size=3D"2"> </font> <br /><font size=3D"2">Looking at web-funcs-lib.pl, at the unix_crypt() subroutine, I can see that if the call to crypt() fails, then Crypt::UnixCrypt is used instead. Indeed, in my case the </font></p> <p><font size=3D"2"> </font> <br /><font size=3D"2">$rv =3D eval crypt(\$pass, \$salt); </font> <br /><font size=3D"2"> </font> <br /><font size=3D"2">call is resulting in $rv being undef. The fallback to Crypt::UnixCrypt does not work because I do not have that perl module installed.</font></p> <p><font size=3D"2"> </font> <br /><font size=3D"2">Now my question is: why is the call to crypt() failing? It was not failing previously. Doing a little digging, I discovered the when the failure occurs, $pass is equal to the old password and $salt is equal to undef. Without salt, crypt() appears to return nothing. Why is the salt undef?</font></p> <p><font size=3D"2"> </font> <br /><font size=3D"2">Thanks </font> <br /><font size=3D"2"> </font> <br /><font size=3D"2">Dave Isaacs </font> <br /><font size=3D"2"> </font> <br /><font size=3D"2"> </font> <br /><font size=3D"2"> </font> <br /><font size=3D"2">=A0 ------------------------------------------------------- </font> <br /><font size=3D"2">This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! <a target=3D"_blank" href=3D"http://sel.as-us.falkag.net/sel?cmd=3Dlnkkid=3D103432bid=3D230486dat=3D121642">http://sel.as-us.falkag.net/sel?cmd=3Dlnkkid=3D103432bid=3D230486dat=3D121642</a></font></p> <p><font size=3D"2">=A0 - </font> <br /><font size=3D"2">Forwarded by the Webmin mailing list at web...@li... </font> <br /><font size=3D"2">To remove yourself from this list, go to <a target=3D"_blank" href=3D"http://lists.sourceforge.net/lists/listinfo/webadmin-list">http://lists.sourceforge.net/lists/listinfo/webadmin-list</a> </font> <br /><font size=3D"2"> </font> </p> <br /> <br /> <p><font size=3D"2">-------------------------------------------------------</font> <br /><font size=3D"2">This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?=A0 Stop!=A0 Download the new AJAX search engine that makes searching your log files as easy as surfing the=A0 web.=A0 DOWNLOAD SPLUNK! <a target=3D"_blank" href=3D"http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D121642">http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D121642</a></font></p> <p><font size=3D"2">-</font> <br /><font size=3D"2">Forwarded by the Webmin mailing list at web...@li...</font> <br /><font size=3D"2">To remove yourself from this list, go to <a target=3D"_blank" href=3D"http://lists.sourceforge.net/lists/listinfo/webadmin-list">http://lists.sourceforge.net/lists/listinfo/webadmin-list</a></font> </p> </blockquote><br /> |