Closed vchain-us-mgmt closed 4 years ago
As discussed, I've also replaced the --create
, --pasword
and --delete
options with arguments, as illustrated by the following examples:
./immuadmin user create username
./immuadmin user change-password username
./immuadmin user delete username
NOTE: These fixes & changes are available only on the fix/user-management
branch at the moment.
@vchain-us-mgmt Please re-test again all the flow with feature branch fix/user-management
(not merged yet into master
).
./immuadmin logout
so that the token file is deleted (this affects whether one gets a password prompt or not during the first-time-ever admin login with immu
admin user, as the password is generated by the server in this case so it doesn't make sense to ask for a password input from user; if the token file is present, it will ask for a password though, as it will consider it can't be the first admin login ever).
Also, please make sure you delete the db/immudbsys
folder, so that there's no (admin) user already created.
The following bugs were identified while testing immuadmin user command: 1) on Linux when immudb is started as a normal process the command "./immuadmin user --create": it creates a user with a password instead of requesting the user to type in his password. This is the expected behavior for admin users, not for additional users
2) On Linux when immudb is started as a service the command "./immuadmin user --create ": the command fails
3) On Windows the command "./immuadmin user --create " fails both when immudb is started as a service or as a background process
4) "immuadmin user immu change-password" is not working
5) "immuadmin login immu" the password is going to the new line, like if the user has already entered the password