If you are trying to use smbclient from Samba to attach from a Linux box to a Windows machine sharing a directory and get an error that looks like:
session setup failed: SUCCESS - 0
Try removing the Windows Live Sign-In Assistant program (Add/Remove Control Panel).
Worked for me.