Bug 11957 - ntlm_auth returns "NT_STATUS_NO_MEMORY: Memory allocation error (0xc0000017)"
Summary: ntlm_auth returns "NT_STATUS_NO_MEMORY: Memory allocation error (0xc0000017)"
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.3.9
Hardware: x64 Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
Depends on:
Reported: 2016-06-08 08:40 UTC by Henrik Ormåsen
Modified: 2017-07-26 06:22 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Ormåsen 2016-06-08 08:40:06 UTC
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.
Comment 1 Henrik Ormåsen 2016-06-14 16:45:26 UTC
Sorry - changing --domain=VBA.LAN to --domain=VBA fixed it!
Comment 2 Douglas Raxworthy 2017-07-26 06:22:41 UTC
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
Not working version