Using Samba with LDAP (fedora-ds) the "unix password sync" function by calling "passwd program = /usr/local/sbin/smbldap-passwd -u %u" using "passwd chat = *New*password*%n\n *Retype*new*password* %n\n" is not working. "unix password sync = Yes" is set. It seems the passwd program is not called. Executing smbldap-passwd on the command line is working fine. Since I found a discussion here: http://www.mail-archive.com/samba@lists.samba.org/msg75452.html I'm not the only one with this problem. I could not find any update in the release notes for the newest samba version. I guess the problem might be a bug. Tanks in advance, thanks for samba, Michael.
The "passwd chat" must be related to the smbldap-passwd output. Can you try with this: passwd chat = "Changing password for*\nNew password*" %n\n "*Retype new password*" %n\n"
(In reply to comment #1) > The "passwd chat" must be related to the smbldap-passwd output. Can you try > with this: > passwd chat = "Changing password for*\nNew password*" %n\n "*Retype new > password*" %n\n" > I tried: passwd chat = "Changing UNIX password for*\nNew password*"%n\n"*Retype new password*"%n\n as well as: passwd chat = "Changing UNIX password for*\nNew password*" %n\n "*Retype new password*" %n\n This makes no change. The same behaviour. Once again, from what we figured out earlier I'm really sure that the passwd program is not called by samba. If this would be true, the chat dialogue doesn't matter. Hopefully to have a solution, Michael.
I have confirmed that Samba is not even calling the unix passwd program. I created a script to collect the passwd sync activity from Samba (/root/passwd.fake instead of /usr/bin/passwd %u). I am running Samba 3.0.25b-1.el5_1.4 on RHEL5.1.
Not maintained anymore