I tested it now with Windows Server 2016 joined to another domain and you are right. It worked with local domain, it worked with no AD at all but it didn’t work as member.
Thanks to @nrauso, sec=ntlm did the trick in my tests.
So this worked for me:
mount -t cifs //192.168.1.121/backup /mnt/backup/ -o sec=ntlm,username=Administrator,password=SeCrEt1$%
Workaround till we have a better solution:
Edit /etc/e-smith/events/actions/mount-cifs and add “sec=ntlm” at line 66 to change it from
$err = qx(/bin/mount -t cifs "//$smbhost/$smbshare" $mntdir -o credentials=$tmp,nounix 2>&1);
$err = qx(/bin/mount -t cifs "//$smbhost/$smbshare" $mntdir -o sec=ntlm,credentials=$tmp,nounix 2>&1);
Now the backup should work.
As I’ve read this is a kind of compatibility mode for older devices as ntlmssp is the new default. The question is: Why does Windows Server needs NTLM when joined another domain but I think that’s another MS feature
The difference between NS6 and NS7 in this case is just a change in samba default behaviour so it’s not directly NS related.