you must set the following parameters to get a working authentification:
SAMBA Server (version 4.6.7)
#smb.conf server min protocol = NT1
Windows XP
#regedit.exe HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\lmcompatibilitylevel = 3