Bug 8813 - Inconsitency between manual page and real usage with credentials file
Summary: Inconsitency between manual page and real usage with credentials file
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.5
Classification: Unclassified
Component: Client Tools (show other bugs)
Version: 3.5.11
Hardware: All Linux
: P5 trivial
Target Milestone: ---
Assignee: Volker Lendecke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-15 08:49 UTC by quamis
Modified: 2022-02-14 00:21 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 quamis 2012-03-15 08:49:37 UTC
The credentials file should be in the form 
user=my_username
domain=Workgroup
password=my_password


In the man page(http://www.samba.org/samba/docs/man/manpages-3/smbclient.1.html) is says "username", not "user"
Also, it should be mentioned that the password cannot be followed by a newline, and it must be the last thing in the file(in the example in the manual, it has a newline after it, to add the domain)
Comment 1 Andrew Bartlett 2022-02-14 00:21:07 UTC
In current Samba the parsing matches the documentation of

  username = value
  password = value
  domain   = value

The parsing is in cli_credentials_parse_file() and this is the new common routine.