Can’t reconnect to the smb share?

After an upgrade I could not connect to my samba shares on a FreeNAS-9.10.2-U2. Just the following appeared in my syslog:

CIFS VFS: Send error in SessSetup = -13
Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
CIFS VFS: Send error in SessSetup = -13
[CIFS VFS: Unable to select appropriate authentication method!
CIFS VFS: Send error in SessSetup = -22
Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
CIFS VFS: Send error in SessSetup = -13
Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
CIFS VFS: Send error in SessSetup = -13

The FreeNAS-9.10.2-U2 upgrade bumped the samba version number from 4.4.5 to 4.5.5 so something might got deprecated and I could not connect via fstab:

//IP/SHARE /home/USER/share cifs credentials=/home/USER/.smbcred,iocharset=utf8,sec=ntlm 0 0

Solving this problem was easy. The “security=ntlm” part had to be removed. Yaaaay!!!