1
0
Fork 0

added option '--server.disable-authentication' for arangosh as well

This commit is contained in:
Jan Steemann 2012-12-21 22:15:55 +01:00
parent 599428859e
commit 2abf581fb7
3 changed files with 12 additions and 1 deletions

View File

@ -1,6 +1,9 @@
v1.1.2 (XXXX-XX-XX)
-------------------
* added option '--server.disable-authentication' for arangosh as well. No more passwd
prompts if not needed
* fixed issue #330: session logging for arangosh
* fixed issue #328: 1.1 compile warnings

View File

@ -187,6 +187,7 @@ ArangoClient::ArangoClient ()
_logOptions(false),
_serverOptions(false),
_disableAuthentication(false),
_endpointString(),
_endpointServer(0),
_username("root"),
@ -318,6 +319,7 @@ void ArangoClient::setupServer (ProgramOptionsDescription& description) {
ProgramOptionsDescription clientOptions("CLIENT options");
clientOptions
("server.disable-authentication", &_disableAuthentication, "disable authentication")
("server.endpoint", &_endpointString, "endpoint to connect to, use 'none' to start without a server")
("server.username", &_username, "username to use when connecting")
("server.password", &_password, "password to use when connecting (leave empty for prompt)")
@ -404,7 +406,7 @@ void ArangoClient::parse (ProgramOptions& options,
}
// check if have a password
_hasPassword = options.has("server.password");
_hasPassword = options.has("server.password") || options.has("server.disable-authentication");
// set colors
if (options.has("colors")) {

View File

@ -542,6 +542,12 @@ namespace triagens {
bool _serverOptions;
////////////////////////////////////////////////////////////////////////////////
/// @brief whether or not to turn off authentication
////////////////////////////////////////////////////////////////////////////////
bool _disableAuthentication;
////////////////////////////////////////////////////////////////////////////////
/// @brief endpoint to connect to as string
////////////////////////////////////////////////////////////////////////////////