Skip to content

Conversation

@instagibbs
Copy link
Member

Some users are confused about the interplay of the three different ways of authenticating rpc requests. This is meant to give extra clarity.

#rpcbind=<addr>

# You must set rpcuser and rpcpassword to secure the JSON-RPC api
# If no rpcpassword is set, rpc cookie auth is sought. The default `-rpccookiefile` name
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: cookie is only created if -server=1

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you imagine any reason why it would be otherwise?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, but more than one user was apparently confused by this!(getting feedback offline) Maybe it's too obvious.

strUsage += HelpMessageOpt("-rpcuser=<user>", _("Username for JSON-RPC connections"));
strUsage += HelpMessageOpt("-rpcpassword=<pw>", _("Password for JSON-RPC connections"));
strUsage += HelpMessageOpt("-rpcauth=<userpw>", _("Username and hashed password for JSON-RPC connections. The field <userpw> comes in the format: <USERNAME>:<SALT>$<HASH>. A canonical python script is included in share/rpcuser. This option can be specified multiple times"));
strUsage += HelpMessageOpt("-rpcauth=<userpw>", _("Username and hashed password for JSON-RPC connections. The field <userpw> comes in the format: <USERNAME>:<SALT>$<HASH>. A canonical python script is included in share/rpcuser. The client then connects normally using the rpcuser=<USERNAME>/rpcpassword=<PASSWORD> pair of arguments. This option can be specified multiple times"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could make sense to split the translation string into smaller logical chunks while touching?

@maflcko
Copy link
Member

maflcko commented Jan 4, 2017

ACK 0513c70

@maflcko maflcko merged commit 0513c70 into bitcoin:master Jan 4, 2017
maflcko pushed a commit that referenced this pull request Jan 4, 2017
…e .conf

0513c70 Make rpcauth help message clearer, add example in example .conf (Gregory Sanders)
codablock pushed a commit to codablock/dash that referenced this pull request Jan 18, 2018
… example .conf

0513c70 Make rpcauth help message clearer, add example in example .conf (Gregory Sanders)
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
… example .conf

0513c70 Make rpcauth help message clearer, add example in example .conf (Gregory Sanders)
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 26, 2019
… example .conf

0513c70 Make rpcauth help message clearer, add example in example .conf (Gregory Sanders)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants