The Samba-Bugzilla – Bug 5467
smbclient not reading authfile
Last modified: 2008-06-13 06:26:14 UTC
Just upgraded a Fedora 8 system to Fedora 9. This currently has samba-3.2.0-1.pre3.9.fc9.i386 installed.
I've been using autofs to create access cifs shares using the instructions provided at:
After upgrading, this stopped working.
I found that the script was invoking the following command:
/usr/bin/smbclient -A /etc/auto.smb.ceu-lon1-dev1 -gL ceu-lon1-dev1
The authfile /etc/auto.smb.ceu-lon1-dev1 contains a legitimate username and password for the server ceu-lon1-dev1.
However, when invoking this command from the shell (as root), I would get prompted for the root password, as if smbclient hadn't read the authfile.
Works for me with 3.2.0rc2:
machine:/usr/local/samba # ./bin/smbclient //localhost/tmp -A /etc/samba/smbclient.auth
Domain=[BANDO] OS=[Unix] Server=[Samba 3.2.0rc2]
Did you try the credentials out of the file manually on the console?
Can you re-test with 3.2.0rc2?
Thank you very much!
Yes, the credentials worked if typed directly into the command line.
I have since upgraded to 3.2.0rc1 and the authfile is now being read correctly again, so I can assume the bug has been fixed.
Thanks for the feedback!
Closing out bug report.