SMB Authentication: The Basics
Should be simple, but...
In Samba, use the encrypt passwords option to enable/disable password encryption.
See the files in Samba's docs/Registry/ directory for Windows Registry settings.