|
From: Dave I. <dav...@en...> - 2006-02-16 19:52:17
|
Sorry, I have to take that back. This doesn't work.
Yes, it allows me to change the password, but now I can put anything in the
"Old Password" field and have it work. That's bad.
Dave I
-----Original Message-----
From: web...@li...
[mailto:web...@li...] On Behalf Of Dave Isaacs
Sent: Wednesday, February 15, 2006 6:23 PM
To: 'web...@li...'
Subject: RE: [webmin-l] Change Password error
That works. Thanks!
Dave I
-----Original Message-----
From: web...@li...
[mailto:web...@li...
<mailto:web...@li...> ] On Behalf Of Jamie
Cameron
Sent: Wednesday, February 15, 2006 6:09 PM
To: web...@li...
Subject: RE: [webmin-l] Change Password error
Hi Dave,
Basically, all I did was change the function unix_crypt in the file
web-lib-funcs.pl to:
# unix_crypt(password, salt)
# Performs Unix encryption on a password, using crypt() or Crypt::UnixCrypt
sub unix_crypt { local ($pass, $salt) = @_;
return "" if (!$salt); # same as real crypt
local $rv = eval "crypt(\$pass, \$salt)";
local $err = $@;
return $rv if ($rv && !$@);
eval "use Crypt::UnixCrypt";
if (!$@) {
return Crypt::UnixCrypt::crypt($pass, $salt);
}
else {
&error("Failed to encrypt password : $err");
}
}
You could do the same thing by directly editing that file in your copy of
Webmin.
- Jamie
On 16/Feb/2006 00:54 Dave Isaacs wrote ..
> Is it possible to give me details (or at least hints) of what need to
> be fixed? I have to deliver a production system by the end of the
> month and I have no working change password feature.
>
> Thanks
>
> Dave I
>
> -----Original Message-----
> From: web...@li...
> [mailto:web...@li...
<mailto:web...@li...> ] On Behalf Of Jamie
> Cameron
> Sent: Tuesday, February 14, 2006 6:39 PM
> To: web...@li...
> Subject: RE: [webmin-l] Change Password error
>
>
> There is another way it could happen - but I will deal with that in
> Webmin 1.270.
>
> - Jamie
>
> On 15/Feb/2006 03:15 Dave Isaacs wrote ..
>
> In my case the password is NOT blank (I am trying to change the
> password of the user I am currently logged in as). Could there be
> another problem?
>
> Thanks
>
> Dave I
>
> -----Original Message-----
> From: web...@li...
> [mailto:web...@li...
<mailto:web...@li...> ] On Behalf Of Jamie
> Cameron
>
> Sent: Tuesday, February 14, 2006 3:14 AM
> To: web...@li...
> Subject: RE: [webmin-l] Change Password error
>
>
> Hi Dave,
> 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.
>
> - Jamie
>
> -----Original Message-----
>
> From: Dave Isaacs <dav...@en...>
> Subj: RE: [webmin-l] Change Password error
> Date: Tue 14 Feb 2006 1:08 am
> Size: 4K
> To: "'web...@li...'"
> <web...@li...>
>
> RE: [webmin-l] Change Password error
> I am using the standard Change Password (passwd) module that is
> packaged with Webmin 1.260.
> Thanks
> Dave I
> -----Original Message-----
> From: web...@li...
> [mailto:web...@li...
<mailto:web...@li...> ] On Behalf Of Jamie
> Cameron
>
> Sent: Saturday, February 11, 2006 4:56 AM
> To: web...@li...
> Subject: Re: [webmin-l] Change Password error
>
> Hi Dave,
> That looks like a bug in Webmin.
> Which module are you doing the password change in though? It seems that
> the
> caller of unix_crypt is passing in the wrong parameters.
>
> - Jamie
> -----Original Message-----
> From: Dave Isaacs dav...@en...
> Subj: [webmin-l] Change Password error
> Date: Sat 11 Feb 2006 5:01 am
> Size: 2K
> To: 'web...@li...'
> web...@li...
> Message
> Previously, whenI was using the Webmin 1.230 (on RedHat EL3)passwd
module,
> there were no problems.
>
> Now, using the Webmin 1.250 version, I get the error Failed to change
> password : Failed to encrypt password :.
>
> 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
>
>
> $rv = eval crypt(\$pass, \$salt);
>
> call is resulting in $rv being undef. The fallback to Crypt::UnixCrypt
> does not work because I do not have that perl module installed.
>
>
> 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?
>
>
> Thanks
>
> Dave Isaacs
>
>
>
> -------------------------------------------------------
> 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!
> http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
<http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642>
> <http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
<http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642> >
>
> -
> Forwarded by the Webmin mailing list at
web...@li...
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-list
<http://lists.sourceforge.net/lists/listinfo/webadmin-list>
> <http://lists.sourceforge.net/lists/listinfo/webadmin-list
<http://lists.sourceforge.net/lists/listinfo/webadmin-list> >
>
>
>
>
> -------------------------------------------------------
> 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!
> http://sel.as-us.falkag.net/sel?cmd=lnk
<http://sel.as-us.falkag.net/sel?cmd=lnk>
> <http://sel.as-us.falkag.net/sel?cmd=lnk
<http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642>
&kid=103432&bid=230486&dat=121642>
> &kid=103432&bid=230486&dat=121642
>
> -
> Forwarded by the Webmin mailing list at
web...@li...
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-list
<http://lists.sourceforge.net/lists/listinfo/webadmin-list>
> <http://lists.sourceforge.net/lists/listinfo/webadmin-list
<http://lists.sourceforge.net/lists/listinfo/webadmin-list> >
-------------------------------------------------------
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!
http://sel.as-us.falkag.net/sel?cmd=lnk
<http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642>
&kid=103432&bid=230486&dat=121642
-
Forwarded by the Webmin mailing list at web...@li...
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
<http://lists.sourceforge.net/lists/listinfo/webadmin-list>
|