Public bug reported: It seems that smbclient isn't properly parsing domains out of credentials files:
$ sudo cat /etc/auto.cifs.mycreds username=myuser password=SuperSecret domain=LAB9320 $ sudo smbclient -A /etc/auto.cifs.mycreds //foo.example.com/MyShare session setup failed: NT_STATUS_LOGON_FAILURE But if I specify the domain (again) via the command line options, it works: $ sudo smbclient -A /etc/auto.cifs.mycreds -W LAB9320 //foo.example.com/MyShare Domain=[LAB9320] OS=[Windows Server 2012 Standard 9200] Server=[Windows Server 2012 Standard 6.2] smb: \> ** Affects: samba (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1389920 Title: The domain option in credentials files isn't working with smbclient To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1389920/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs