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
Showing
- src/box/alter.cc 12 additions, 2 deletionssrc/box/alter.cc
- src/box/bootstrap.snap 0 additions, 0 deletionssrc/box/bootstrap.snap
- src/box/lua/net_box.lua 1 addition, 2 deletionssrc/box/lua/net_box.lua
- src/box/lua/upgrade.lua 16 additions, 0 deletionssrc/box/lua/upgrade.lua
- test/box-py/bootstrap.result 2 additions, 2 deletionstest/box-py/bootstrap.result
- test/box/access_misc.result 1 addition, 1 deletiontest/box/access_misc.result
- test/box/auth.result 132 additions, 4 deletionstest/box/auth.result
- test/box/auth.test.lua 48 additions, 1 deletiontest/box/auth.test.lua
- test/box/net.box.result 25 additions, 6 deletionstest/box/net.box.result
- test/box/net.box.test.lua 10 additions, 4 deletionstest/box/net.box.test.lua
- test/xlog/upgrade.result 2 additions, 2 deletionstest/xlog/upgrade.result
Loading
Please register or sign in to comment