Bug 1496 - smbclient --authfile does not work
smbclient --authfile does not work
Product: Samba 3.0
Classification: Unclassified
Component: Docs
x86 Linux
: P3 normal
: none
Assigned To: Gerald (Jerry) Carter
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2004-06-30 12:56 UTC by Anthony Lieuallen
Modified: 2005-08-24 10: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 Anthony Lieuallen 2004-06-30 12:56:05 UTC
Using -A works, but --authfile does not, with smbclient.  Log:

t-bone@andromeda t-bone $ smbclient //exchange/shared -A /home/t-bone/smbauth -
Domain=[OUTOFTHEBOX] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
smb: \> quit
t-bone@andromeda t-bone $ smbclient //exchange/shared --authfile=/home/t-
bone/smbauth -N
Anonymous login successful
Domain=[OUTOFTHEBOX] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
tree connect failed: NT_STATUS_ACCESS_DENIED
t-bone@andromeda t-bone $ smbclient -V
Version 3.0.2a
Comment 1 TAKAHASHI Motonobu 2005-02-16 10:59:47 UTC
This is a poor documented matter.
--authfile is not correct, --authenticate-file is the correct name!
And in Samba 3.0.11, thie document bug still remains...

Comment 2 Gerald (Jerry) Carter 2005-02-17 08:00:55 UTC
it's actually --authentication-file (see lib/p[opt_commond.c).  
I can't find any reference to --authfile in samba-docs
or in the source code.
Comment 3 TAKAHASHI Motonobu 2005-02-17 08:30:55 UTC
>I can't find any reference to --authfile in samba-docs
>or in the source code.

man smbclient

# I look at man pages at first 
  whenever I need to check what Samba document says.

  The man pages are most well maintained documents, aren't they?
Comment 4 Gerald (Jerry) Carter 2005-02-17 09:12:34 UTC
I grepped the xml source and for some reason --authfile 
didn't show up.  I forgot about the global.entities file.
Fixed in all man pages now.  Thanks.
Comment 5 Gerald (Jerry) Carter 2005-08-24 10:22:24 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.