Skip to content
Snippets Groups Projects
Commit 076a8420 authored by Konstantin Nazarov's avatar Konstantin Nazarov Committed by Roman Tsisyk
Browse files

Permit empty passwords in net.box

This is required to do the following:

tarantoolctl user@host
tarantoolctl guest@host
tarantoolctl guest:@host

Currently all of those will lead to error from net.box. Either because
password is not specified, or because guest user can't login with empty
password.

This change effectively sets guest password to an empty string, to make
it less of a special case to authentication.

And since now guest can be authenticated with an empty password, net.box
will replace nil passwords with empty strings, when user name is
provided.

We still support the case when username=nil and password=nil. In this
case net.box doesn't send authentication packet at all. Guest login is
just assumed.

The bootstrap snapshot will now have guest user with an empty password,
instead of no password.

Fixes #1545
parent 03a40391
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment