middleware
middleware copied to clipboard
NAS-131285 / 25.10 / Add API to migrate from root user
This commit adds an API endpoint to migrate root user to one with the specified username and password combination. If password is omitted then the one currently used for root is preserved for the new admin account. Various root account parameters are migrated to the new admin account such as:
- ssh keys
- password enabled status
- two factor authentication configuration and secret
- email address
- shell
- home directory
Jira URL: https://ixsystems.atlassian.net/browse/NAS-131285