Bug 5467 - smbclient not reading authfile
Summary: smbclient not reading authfile
Status: CLOSED WORKSFORME
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: Client tools (show other bugs)
Version: 3.2.0
Hardware: x86 Linux
: P3 normal
Target Milestone: ---
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-16 13:21 UTC by Andrew Kisliakov
Modified: 2008-06-13 06:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Kisliakov 2008-05-16 13:21:09 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:
http://www.howtoforge.com/accessing_windows_or_samba_shares_using_autofs

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.
Comment 1 Karolin Seeger 2008-06-13 06:14:20 UTC
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]
smb: \> 

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!
Comment 2 Andrew Kisliakov 2008-06-13 06:20:14 UTC
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.
Comment 3 Karolin Seeger 2008-06-13 06:26:14 UTC
Thanks for the feedback!

Closing out bug report.