Problem: changing password from WinNT workstation 4 SP3

Carlos Henrique chenriq at homeshopping.com.br
Fri Nov 27 16:30:59 GMT 1998


Platform:
SunOS 4.1.4
Samba-2.0.beta2
Excerpt from our smb.conf
...
workgroup = DEMAB_DMDDS

server string =

hosts allow = 172.19.48.0/255.255.248.0 127. 172.27.16.0/255.255.240.0
172.19.
96.0/255.255.248.0

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 = 172.19.41.2/255.255.248.0  172.19.65.2/255.255.248.0

remote announce = 172.19.55.255 172.27.16.40

...

- "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
commented.
So, I commented out this "if" block, too.
After make/make install again, when I changed password, WinNT showed the
message
"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
smbpasswd
 file (unix) that only the LCT string had been changed, while the hash
string
remained the same.





More information about the samba-ntdom mailing list