This worked with compiled samba-4.1.2 on Ubuntu 12.04. After upgrade to Ubuntu 16.04 with samba Version 4.3.9-Ubuntu I get this error: # ntlm_auth --request-nt-key --domain=VBA.LAN --username=[user] --password=[pw] NT_STATUS_NO_MEMORY: Memory allocation error (0xc0000017) Can't find more info in log files.
Sorry - changing --domain=VBA.LAN to --domain=VBA fixed it!
This fix works for me too but I need to use the "-W mydomainame" switch to over-ride the "realm = mydomainname.com" in my smb.conf file. smbclient -W mydomainname -U myuser -g -c dir //crappywindowshost/directorypath$ I tried my luck changing it in smb.conf and rejoining the domain, but it's not happy about that approach. This switch use smells like a workaround for a bug with how smbclient is behaving since the last patch. Working version 4.6.4.1 Not working version 4.6.6.1