pub struct AuthConfig {
    pub key_managment: Option<KeyManagmentMode>,
    pub password: Option<String>,
    pub method: Option<AuthMethod>,
    pub identity: Option<String>,
    pub anonymous_identity: Option<String>,
    pub ca_certificate: Option<String>,
    pub client_certificate: Option<String>,
    pub client_key: Option<String>,
    pub client_key_password: Option<String>,
    pub phase2_auth: Option<String>,
}
Expand description

Netplan supports advanced authentication settings for ethernet and wifi interfaces, as well as individual wifi networks, by means of the auth block.

Fields

key_managment: Option<KeyManagmentMode>

The supported key management modes are none (no key management); psk (WPA with pre-shared key, common for home wifi); eap (WPA with EAP, common for enterprise wifi); and 802.1x (used primarily for wired Ethernet connections).

password: Option<String>

The password string for EAP, or the pre-shared key for WPA-PSK.

method: Option<AuthMethod>

The EAP method to use. The supported EAP methods are tls (TLS), peap (Protected EAP), and ttls (Tunneled TLS).

identity: Option<String>

The identity to use for EAP.

anonymous_identity: Option<String>

The identity to pass over the unencrypted channel if the chosen EAP method supports passing a different tunnelled identity.

ca_certificate: Option<String>

Path to a file with one or more trusted certificate authority (CA) certificates.

client_certificate: Option<String>

Path to a file containing the certificate to be used by the client during authentication.

client_key: Option<String>

Path to a file containing the private key corresponding to client-certificate.

client_key_password: Option<String>

Password to use to decrypt the private key specified in client-key if it is encrypted.

phase2_auth: Option<String>

Phase 2 authentication mechanism.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.