Skip to main content

validate_two_optional_configs

Function validate_two_optional_configs 

Source
fn validate_two_optional_configs<T, U>(
    backend_config_a: &Option<T>,
) -> impl FnOnce(&Option<U>, &()) -> Result + '_
Expand description

Validates two optional config objects against each other.

Ensures that - if both config objects are present - they have no overlapping system user IDs or SSH authorized_keys.

ยงErrors

Returns an error if there are

  • duplicate system users
  • duplicate SSH authorized keys (by comparing the actual SSH public keys)