From: Marc P. <pet...@ma...> - 2012-10-26 05:02:29
|
On Oct 25, 2012, at 10:00 PM, Jamie Cameron <jca...@we...> wrote: > On 25/Oct/2012 06:33 Marc Petitmermet <pet...@ma...> wrote .. >> >> On Oct 25, 2012, at 6:34 AM, Jamie Cameron <jca...@we...> wrote: >> >>> On 24/Oct/2012 21:25 Marc Petitmermet <pet...@ma...> wrote .. >>>> >>>> On Oct 24, 2012, at 9:23 PM, Jamie Cameron <jca...@we...> wrote: >>>> >>>>> On 23/Oct/2012 21:48 Marc Petitmermet <pet...@ma...> wrote .. >>>>>> >>>>>> On Oct 23, 2012, at 8:13 PM, Jamie Cameron <jca...@we...> wrote: >>>>>> >>>>>>> On 23/Oct/2012 00:43 Marc Petitmermet <pet...@ma...> wrote .. >>>>>>>> Dear List Members >>>>>>>> >>>>>>>> I have installed the latest versions of webmin (1.600) and usermin (1.520) >>>> on >>>>>> RHEL >>>>>>>> 5.8. I want users to be able to change there linux and samba password with >>>> the >>>>>>>> "Change Password" module of usermin. The Linux part works without issues >> but >>>>>> the >>>>>>>> "Also change samba password with command: smbpasswd -r xx.xx.xx.xx" does >> not >>>>>> work >>>>>>>> at all (nonetheless, usermin tells me "Your password for xxxx has been changed >>>>>>>> successfully."). I wonder if the syntax of my command is correct within >> usermin. >>>>>>>> When logging into the same server by ssh, users can type "smbpasswd -r xx.xx.xx.xx" >>>>>>>> and can change the samba password without any issues. So why does this not >>>> work >>>>>>>> in usermin? I have enabled all logs and debugging but I cannot find anything >>>>>> at >>>>>>>> all. Any hints are appreciated. >>>>>>> >>>>>>> If you run the command : >>>>>>> >>>>>>> smbpasswd -r xx.xx.xx.xx -h >>>>>>> >>>>>>> what does it output on your system? >>>>>> >>>>>> Here is the output: >>>>>> >>>>>> %> smbpasswd -r xx.xx.xx.xx -h >>>>>> When run by root: >>>>>> smbpasswd [options] [username] >>>>>> otherwise: >>>>>> smbpasswd [options] >>>>>> >>>>>> options: >>>>>> -L local mode (must be first option) >>>>>> -h print this usage message >>>>>> -s use stdin for password prompt >>>>>> -c smb.conf file Use the given path to the smb.conf file >>>>>> -D LEVEL debug level >>>>>> -r MACHINE remote machine >>>>>> -U USER remote username >>>>>> extra options when run by root or in local mode: >>>>>> -a add user >>>>>> -d disable user >>>>>> -e enable user >>>>>> -i interdomain trust account >>>>>> -m machine trust account >>>>>> -n set no password >>>>>> -W use stdin ldap admin password >>>>>> -w PASSWORD ldap admin password >>>>>> -x delete user >>>>>> -R ORDER name resolve order >>>>> >>>>> Ok, I see the issue now .. the problem is that Usermin fails if the >>>>> smbpasswd command you give has command-line parameters. I will fix this >>>>> in the next release. >>>> >>>> Thank you Jamie. If you have something to test just let me know. >>> >>> You can see the patch that fixes this at : >>> https://github.com/webmin/usermin/commit/633e138e4890203e2285e75e419546af17e5c2c2 >> >> This still does not work. I can't find anything in /var/log/usermin/miniserv.log. > > What messages get displayed to the user in Usermin when he does a password change? I found out that the links /user/local/usermin and /user/local/webmin still pointed to the previous version of the programs. Therefore, I patched the file in the wrong version. Having corrected now the changepass.cgi file in the correct active version of usermin, I get the following after a password change: Your password for xx has been changed successfully. Any telnet, SSH, FTP or POP3 logins made from now on will require the new password. Your Samba password for windows file sharing has also been changed. Nonetheless, the unix password has been correctly changed but the samba password is still the old one. Now, the passwords aren't in sync anymore. When I try to change the password in this situation again with usermin, I get the same messages displayed as above although it did not work. In the terminal I get the error shown below when the old password is not correct: smbpasswd -r xxxx Old SMB password: New SMB password: Retype new SMB password: Could not connect to machine xxxx: NT_STATUS_LOGON_FAILURE In case of not entering twice identical new passwords: smbpasswd -r xxxx Old SMB password: New SMB password: Retype new SMB password: Mismatch - password unchanged. Unable to get new password. In case of a correct password change: smbpasswd -r xxxx Old SMB password: New SMB password: Retype new SMB password: Password changed for user xx Regards, Marc |