- 07 Jun 2024
- 2 Minutes to read
- Print
- DarkLight
- PDF
Manage Local Users
- Updated on 07 Jun 2024
- 2 Minutes to read
- Print
- DarkLight
- PDF
Add Local User
- Go to Security :: Local Accounts.
- Click Add (displays dialog).
- Enter Username.
- On the Account Type menu, select one.
- Regular Account radio button (expands dialog).
- Enter Password and Confirm Password (If the password is in a hash format, select the Hash Format Password checkbox.).
Alternatively, select Require password change at the login time checkbox.Note:Set the password based on the rules defined under the Security :: Password Rules tab. You can change the rules from the same tab.
- Enter Password and Confirm Password (If the password is in a hash format, select the Hash Format Password checkbox.).
- API Account radio button
- An API Account will only have access to API requests (not CLI nor WebUI). The API Key can be used directly for API requests authentication in any endpoint, using the
api_key
andusername
headers instead of authenticating to get a ticket and then using theticket
header. For example:Shellcurl -X GET "https://nodegrid/api/v1/system/preferences" \ -H "accept: application/json" -H "Content-Type: application/json" \ -H "api_key: 0PPEC37CuhKJ68fHEh+ihfjh7nW0tZfDAg==" \ -H "username: myapiuser" -k
- To turn the user into an API Account, select the API Account option. The API Key will be automatically generated and displayed.
- On the API Key, follow this instruction: "Copy and store the API Key as it will not be possible to recover it after clicking on Save button."
- An API Account will only have access to API requests (not CLI nor WebUI). The API Key can be used directly for API requests authentication in any endpoint, using the
- Regular Account radio button (expands dialog).
- (optional) Account Expiration Date (YYYY-MM-DD).
- On the User Group panel, select from the left-side panel, and click Add► to move to the right-side panel. To remove from the right-side panel, select, and click ◄Remove.
- Click Save.
Edit Local User
- Go to Security :: Local Accounts.
- Locate and select checkbox next to username.
- Click Edit (displays dialog).
- Make changes as needed.
- Click Save.
Delete Local User
- Go to Security :: Local Accounts.
- Locate and select checkbox next to username.
- Click Delete.
- On the confirmation dialog, click OK.
Lock Local User
The administrator can lock a user out of the device.
- Go to Security :: Local Accounts.
- Locate and select checkbox next to username.
- Click Lock (locks user out of device).
Unlock Local User
As needed, the administrator can unlock a user.
- Go to Security :: Local Accounts.
- Locate and select checkbox next to username.
- Click Unlock (allows user access)
There is a function whereby the user is authorized by an external authentication provider (LDAP, AD, or TACACS+) and the Local user account is locked. The user can authenticate with the sshkey, but permissions are enforced based on his group permissions with the external authentication provider.
Hash Format Password
As needed, the administrator can use a hash format password, rather than plain password. This can be used for scripts (avoids requiring scripts to use actual user passwords). The hash password must be generated separately beforehand. Use a hash password generator. These applications (OpenSSL, chpasswd, mkpasswd) use MD5, SHA256, SHA512 engines.
Hash Format
CLI Procedure
The Nodegrid Platform has an OpenSSL version. In the Console, use this:
root@nodegrid:~# openssl passwd -1 -salt mysall
Password:
$1$mysall$YBFr9On0wjde5be32mC1g1
Generate a new API key for a User
In the Type column, the user must have a value of API.
- Go to Security :: Local Accounts.
- Locate and click the user’s name – Type column must be API (displays dialog). (Alternatively, select checkbox and click Edit.)
- Click Reset API Key.IMPORTANTThe new key is displayed in the API Key field. Copy the key and save in a secure location.
- Click Save.