latest cvs

andrew tristan atristan at
Mon Feb 22 19:08:11 GMT 1999

Sent this last Friday, but mangled the address...

I followed LKCL's advice and grabbed the latest cvs to see whether it
would solve some of the problems that I'm having, and indeed it did.
Service names no longer show up as "//sambaserver/|||||||||", and
roaming profiles now work as expected.

I still can't get password sync to work though.  If anyone has got a
clue as to what I'm doing wrong, I'd love to hear it.  This is on a
SunOS 5.5.1 machine.  Below is the chat debug output, relevant bits
from smb.conf, and the actual error message.  The weird thing is that
/etc/shadow actually gets updated with the new password, although
samba/private/smbpasswd does not.  Given that this is so, I wouldn't
expect that the passwd chat is the problem.  With password sync turned
off, smbpasswd works as expected.  Here's the error:

machine rejected the password change: Error was : \
	The specified password is invalid.
Failed to change password for luser

Here's the relevant stuff from smb.conf:

unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = New\spassword: "%n\n" \nRe-enter\snew\spassword: "%n\n"

And the chat debug output:

[1999/02/19 12:57:55, 10] smbd/chgpasswd.c:(202)
  Invoking '/usr/bin/passwd luser' as password change program.
[1999/02/19 12:57:56, 100] smbd/chgpasswd.c:(276)
  talktochild: chatbuf=[New password:] responsebuf=[New password:]
[1999/02/19 12:57:56, 100] smbd/chgpasswd.c:(289)
  talktochild: sendbuf=[1234zxcv
[1999/02/19 12:57:56, 100] smbd/chgpasswd.c:(276)
  talktochild: chatbuf=[
  Re-enter new password:] responsebuf=[
  Re-enter new password:]
[1999/02/19 12:57:56, 100] smbd/chgpasswd.c:(289)
  talktochild: sendbuf=[1234zxcv
[1999/02/19 12:57:58, 3] smbd/chgpasswd.c:(326)
  The process is no longer waiting!

The chat sequence looks right to me (and the unix password gets
updated, so this must be right).  HAVE_WAITPID gets defined, should I
undef it and see whether wait4() does better than waitpid()?

On another note, when I tell folks that I'm running a PDC on a unix
box, their eyes pop out of their heads and their tongues drop to the
floor; samba is mighty cool.

andrew.tristan at		Unix Systems Group, UC Riverside

More information about the samba-ntdom mailing list