We are running Debian wheezy, with smbclient v 3.6.6, trying to reach a Windows 2012 R2 share.
This conundrum involves two users: ReadOnlyUser and WriteUser
We have been using -A (--authentication-file) to reach our windows shares from this box for years in order to automate many file transfer jobs against various Windows shares, sftp, and web endpoints. I can use the -A option to log in with the ReadOnlyUser against this share without difficulty.
smbclient '//server.domain/share' -A ReadOnlyUser.auth
I can use -U to log in with the WriteUser if I provide the password in response to the prompt interactively.
smbclient '//server.domain/share' -U WriteUser
However, when I try to provide an authentication file with the WriteUser credentials, I get this error:
session setup failed: NT_STATUS_LOGON_FAILURE
The authentication files look like this:
username = WriteUser
password = 3iDPCAWmdiAQxTn3
domain = mydomain
I checked in our AD to make sure that the two users are identical in all other respects.