Mounting NTLMv2 shares for which signing is not enabled (e.g. older (including Wheezy)
Samba deployments, or older Windows, or Windows with signing turned off for other
compatibility reasons) fails with 'Invalid Paramater'.
This is only a minor bug despite the fact that it causes previous working
setups to fail because SMB signing is the recommended best practise anyway and
it would be better to enable it in the server anyway.
on the command line:
root@hostname:/home/user# mount -t cifs //winhost/share /home/winshare -ouser=winuser,sec=ntlmv2
Password:
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
in the syslog:
Jan 20 02:34:37 aildeb kernel: [ 9439.232441] Status code returned 0xc000000d NT_STATUS_INVALID_PARAMETER
Jan 20 02:34:37 aildeb kernel: [ 9439.232446] CIFS VFS: Send error in SessSetup = -22
Jan 20 02:34:37 aildeb kernel: [ 9439.258135] CIFS VFS: cifs_mount failed w/return code = -22
Once I enabled signing and used ntlmsspi things worked fine.
Note however that ntlmv2i still fails.
This is for accessing a Windows 8.1 host.