Problem: changing password from WinNT workstation 4 SP3

Carlos Henrique chenriq at
Fri Nov 27 16:30:59 GMT 1998

SunOS 4.1.4
Excerpt from our smb.conf
workgroup = DEMAB_DMDDS

server string =

hosts allow = 127.

security = user

unix password sync = no

case sensitive = Yes

passwd chat debug = True

log level = 1

null passwords = yes

passwd program = /usr/bin/passwd %u

encrypt passwords = yes

interfaces =

remote announce =


- "unix password sync = yes" only works for root changing password.
Using "unix
password sync = no";
- I can change samba password on unix using smbpasswd (for a non-root
user), but
 I can't do the same from WinNT.
 log.<samba client>:

[1998/11/26 10:24:51, 0] smbd/chgpasswd.c:check_oem_password(741)
  check_oem_password: old lm password doesn't match.

- If I change the user password to null on WinNT, it works.
- There are two lines where this message is shown in smbd/chgpasswd.c. I
could s
ee that the message above came from the second one and commented out the
"if" bl
ock of this message. After make/make install, I changed password on
WinNT again.
log.<samba client>

[1998/11/26 10:29:12, 0] smbd/chgpasswd.c:check_oem_password(748)
  check_oem_password: old nt password doesn't match.

This message appears in the next "if" after the previous 'if' block
So, I commented out this "if" block, too.
After make/make install again, when I changed password, WinNT showed the
"password changed". However, when logging off the following message was
sent to
log.<samba client>

[1998/11/26 10:35:24, 0] smbd/reply.c:reply_sesssetup_and_X(695)
  NT Password did not match ! Defaulting to Lanman

When loggin on after that, only the old password worked. And, I saw in
 file (unix) that only the LCT string had been changed, while the hash
remained the same.

More information about the samba-ntdom mailing list