pub struct SystemAccounts { /* private fields */ }Expand description
The operating system’s accounts: who may sign in is who the OS lets sign in, narrowed by
SystemAccountsConfig::min_uid and SystemAccountsConfig::groups.
Read only: accounts are managed with the OS’s own tools. Every call blocks on the OS (PAM may sleep seconds after a wrong password), so a host calls it from a blocking thread.
Implementations§
Source§impl SystemAccounts
impl SystemAccounts
Sourcepub fn builder() -> SystemAccountsBuilder
pub fn builder() -> SystemAccountsBuilder
Options for the OS’s accounts, each at its default.
Sourcepub fn new(config: SystemAccountsConfig) -> Result<Self, ProviderError>
pub fn new(config: SystemAccountsConfig) -> Result<Self, ProviderError>
Sourcepub fn config(&self) -> &SystemAccountsConfig
pub fn config(&self) -> &SystemAccountsConfig
The options in force.
Trait Implementations§
Source§impl Authenticator for SystemAccounts
impl Authenticator for SystemAccounts
Source§fn authenticate(&self, attempt: Attempt) -> Result<Verdict, ProviderError>
fn authenticate(&self, attempt: Attempt) -> Result<Verdict, ProviderError>
A name the OS does not have, or these options do not admit, is Unknown; a wrong
password, or a disabled, locked or expired account, is Invalid; success names the
account by: "id" (the uid, or the SID on Windows).
Source§impl Debug for SystemAccounts
impl Debug for SystemAccounts
Source§impl Directory for SystemAccounts
impl Directory for SystemAccounts
Source§impl ProviderDecl for SystemAccounts
impl ProviderDecl for SystemAccounts
Source§impl TryFrom<Described<SystemAccountsConfig>> for SystemAccounts
impl TryFrom<Described<SystemAccountsConfig>> for SystemAccounts
Source§impl TryFrom<SystemAccountsConfig> for SystemAccounts
impl TryFrom<SystemAccountsConfig> for SystemAccounts
Auto Trait Implementations§
impl Freeze for SystemAccounts
impl RefUnwindSafe for SystemAccounts
impl Send for SystemAccounts
impl Sync for SystemAccounts
impl Unpin for SystemAccounts
impl UnsafeUnpin for SystemAccounts
impl UnwindSafe for SystemAccounts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more