I used to run NIS. I did not use the "pam password change" option-
the
"unix password sync" "password program" and "password
chat" options were
sufficient.
If you run smbpasswd from command line as a regular user, what happens? All
I can guess is that samba things the unix script failed for some reason.
Can you create a more complex pw change script to capture the user name and
password to a log file? Were the passwords already in sync?
The passwd command should be running as root, so you should not need to have
the old password. Did you try "passwd -r nis" instead?
How about if the user has a /etc/passwd unix acct and not nis?
-----Original Message-----
From: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org]
On Behalf Of Enrique Ayesta Perojo
Sent: Wednesday, November 03, 2010 1:33 PM
To: samba at lists.samba.org
Subject: [Samba] Samba 3.5.6 Syncing passwords
Hello,
I'm running a Samba 3.5.6 standalone server on FreeBSD 8.1, with XP and 7
clients. I can't get Samba to syncronize Windows & NIS passwords, in
fact
it's behaving strangely from what i think:
Relevant (i think) parts of smb.conf:
encrypt passwords = yes
passdb backend = tdbsam
pam password change = yes
unix password sync = yes
passwd program = /usr/bin/passwd '%u'
passwd chat = *New*password* %n\n *ReType*new*password* %n\n
*passwd*changed*\n
When 'pam password change' is set to 'yes' a user can change his
windows
password, if not the UNIX NIS password is changed, but not the Windows one,
and it says the user can't change it...
I have not made any modifications to my pam configuration, so... any clue?
Is
it posible to sync passwords or just one of them can be changed by the user
from Windows?
Thanks
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba