#[repr(u8)]pub enum AuthenticationType {
NotSet = 0,
Ascii = 1,
Pap = 2,
Chap = 3,
MsChap = 5,
MsChapV2 = 6,
}Expand description
Types of authentication supported by the TACACS+ protocol.
RFC-8907 partitions these by supported minor version: Ascii requires MinorVersion::Default, while the rest (beside NotSet, I believe) require MinorVersion::V1.
Note: TACACS+ as a protocol does not meet modern standards of security; access to the data lines must be protected. See RFC-8907 Section 10.1
Variants§
NotSet = 0
Authentication type not set, typically when it’s not available to the client.
NOTE: This option is only valid for authorization and accounting requests.
Ascii = 1
Plain text username & password exchange.
Pap = 2
The Password Authentication Protocol, as specified by RFC-1334.
Chap = 3
The Challenge-Handshake Authentication Protocol, also specified in RFC-1334.
MsChap = 5
Version 1 of Microsoft’s CHAP extension.
MsChapV2 = 6
Version 2 of Microsoft’s CHAP extension.
Implementations§
Source§impl AuthenticationType
impl AuthenticationType
Sourcepub const fn required_minor_version(&self) -> Option<MinorVersion>
pub const fn required_minor_version(&self) -> Option<MinorVersion>
Returns the required minor version for this AuthenticationType, if applicable.
Trait Implementations§
Source§impl Clone for AuthenticationType
impl Clone for AuthenticationType
Source§fn clone(&self) -> AuthenticationType
fn clone(&self) -> AuthenticationType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more