There is a post on the web talking about that
http://www.troubleshooters.com/linux/win9x_samba.htm
but I need to refer to another one here
https://askubuntu.com/questions/1213759/allow-smb-1-with-lanman-authentication-with-samba
to make it fully work.
The key point is to check /etc/samba/smbpasswd
Make sure that the entry doesn't look like
james:1508:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:278AC243ABDE22263F8C90EDD3793C82:[U ]:LCT-6A8C3B16: