fn add_system_wide_admins(
nethsm: &NetHsm,
admin_credentials: &AdminCredentials,
) -> Result<(), Error>
Expand description
Creates all R-Administrators on a [NetHsm
].
If users exist already, only their passphrase is set.
§Note
Uses the nethsm
with the default
R-Administrator.
§Errors
Returns an error if
- the default [
Administrator
][UserRole::Administrator
] can not be retrieved fromadmin_credentials
, - the default [
Administrator
][UserRole::Administrator
] credentials cannot be used with thenethsm
, - available users of the
nethsm
cannot be retrieved, - or one of the admin credentials cannot be added, or updated.