Function add_system_wide_admins

Source
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 from admin_credentials,
  • the default [Administrator][UserRole::Administrator] credentials cannot be used with the nethsm,
  • available users of the nethsm cannot be retrieved,
  • or one of the admin credentials cannot be added, or updated.