Julian Gomez
2003-Jun-13 15:45 UTC
[Samba] Samba 3.0.0beta1 problems when using 'unix password sync'
Hi, I've been playing with the above release package, and everything works great. Domain logons with WinXP / Win95, file shares between WinXP / Win95 / Linux. That said, I cannot seem to get the above version of the software to play nice with the 'unix password sync' directive. Trying to modify the Windows Networking password would usually return 'Incorrect password'. I get the same failure with WinXP, except the error is slightly different, but same result. I have narrowed down the problem to the above directive, by commenting and uncommenting other things in my 'smb.conf'. But, when I use the exact same configuration file with Samba v2.2.8a, everything works dandy like. Changing passwords is good, and it syncs properly with '/etc/shadow'. My 'smb.conf' is attached to the email. Samba was built from the relevant sources, my ./configure line was : ./configure --prefix=/usr/local/opt/samba --with-pam --with-pam_smbpass --with-syslog --with-quotas --with-acl-support --with-sendfile support That was the generic one used with both Samba builds, the 3.0.0beta1 configure line was slightly longer, I also included winbind and a number of other things for kicks. Platform is RedHat v9, all errate packages applied. I've gone through Aimsgroup's archives, but cannot see anything which is related :-\ Nothing noted via a cursory look through Bugzilla either. Insight would be much appreciated, thanks!
Julian Gomez
2003-Jun-13 15:51 UTC
[Samba] Re: Samba 3.0.0beta1 problems when using 'unix password sync'
On Fri, Jun 13, 2003 at 11:45:10PM +0800, Julian Gomez @Work spoke thusly:>That said, I cannot seem to get the above version of the software to play >nice with the 'unix password sync' directive. Trying to modify the Windows >Networking password would usually return 'Incorrect password'. I get the >same failure with WinXP, except the error is slightly different, but same >result. I have narrowed down the problem to the above directive, by >commenting and uncommenting other things in my 'smb.conf'.I'm such a nitwit, here's the logged entry in '/var/log/messages' btw : Jun 12 15:33:30 cookie smbd[5679]: smb_pass_passchange: PAM: Password Change Failed for user tester! I did run across another post by someone which said they used "/usr/bin/passwd %U" instead of "/usr/bin/passwd %u", and it worked for them (problem with the sync directive also); but I've tried that, and the result is negative. My smb.conf is listed below. I've wrapped the 'passwd chat' line. [global] workgroup = SCSILOVER netbios name = OSS-SAMBA server string = PIII 2.4Ghz Samba Trial Run interfaces = 132.147.160.125 encrypt passwords = Yes log level = 5 log file = /usr/local/opt/samba/var/log/log.%m max log size = 500 load printers = no domain logons = yes os level = 100 preferred master = True domain master = True wins support = Yes name resolve order = wins lmhosts hosts bcast local master = Yes dns proxy = Yes hosts allow = 132.147.160. 127. security = user adduser script = /usr/sbin/useradd -s /bin/false -M %u unix password sync = yes passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated* successfully* passwd chat debug = no passwd program = /usr/bin/passwd %u #passwd program = /usr/bin/passwd %U pam password change = yes obey pam restrictions = yes smb passwd file = /usr/local/opt/samba/private/smbpasswd [homes] comment = user home directories -- test read only = No [netlogon] comment = network logon services path = /usr/local/opt/samba/lib/netlogon read only = No guest ok = Yes