Fails to mount a Windows share in Ubuntu 12.10

To get it working add the following to /etc/samba/smb.conf in the [global] section:

client lanman auth = yes
client ntlmv2 auth = no