pub struct LibPamTransaction<C: Conversation> { /* private fields */ }Expand description
An owned PAM handle.
Implementations§
Source§impl<C: Conversation> LibPamTransaction<C>
impl<C: Conversation> LibPamTransaction<C>
Sourcepub fn end_silent(self)
pub fn end_silent(self)
Ends the PAM transaction “quietly” (on Linux-PAM only).
On Linux-PAM, this is equivalent to passing the PAM_DATA_SILENT flag
to pam_end on Linux-PAM, which signals that data cleanup
should “not treat the call too seriously” [sic].
On other platforms, this is no different than letting the transaction end on its own.
Trait Implementations§
Source§impl<C: Conversation> Debug for LibPamTransaction<C>
impl<C: Conversation> Debug for LibPamTransaction<C>
Source§impl<C: Conversation> Drop for LibPamTransaction<C>
impl<C: Conversation> Drop for LibPamTransaction<C>
Source§impl<C: Conversation> Logger for LibPamTransaction<C>
impl<C: Conversation> Logger for LibPamTransaction<C>
Source§fn environ(&self) -> impl EnvironMap<'_>
fn environ(&self) -> impl EnvironMap<'_>
The contents of the environment to set for the logged-in user. Read more
Source§fn environ_mut(&mut self) -> impl EnvironMapMut<'_>
fn environ_mut(&mut self) -> impl EnvironMapMut<'_>
A writable map of the environment to set for the logged-in user. Read more
Source§fn username(&mut self, prompt: Option<&OsStr>) -> Result<OsString>
fn username(&mut self, prompt: Option<&OsStr>) -> Result<OsString>
Retrieves the name of the user who is authenticating or logging in. Read more
Source§impl<C: Conversation> Transaction for LibPamTransaction<C>
impl<C: Conversation> Transaction for LibPamTransaction<C>
Source§fn authenticate(&mut self, flags: AuthnFlags) -> Result<()>
fn authenticate(&mut self, flags: AuthnFlags) -> Result<()>
Starts the authentication process for the user. Read more
Source§fn account_management(&mut self, flags: AuthnFlags) -> Result<()>
fn account_management(&mut self, flags: AuthnFlags) -> Result<()>
Verifies the validity of the user’s account (and other stuff). Read more
Source§fn change_authtok(&mut self, flags: AuthtokFlags) -> Result<()>
fn change_authtok(&mut self, flags: AuthtokFlags) -> Result<()>
Changes the authentication token. Read more
Auto Trait Implementations§
impl<C> !Freeze for LibPamTransaction<C>
impl<C> !RefUnwindSafe for LibPamTransaction<C>
impl<C> !Send for LibPamTransaction<C>
impl<C> !Sync for LibPamTransaction<C>
impl<C> Unpin for LibPamTransaction<C>
impl<C> UnwindSafe for LibPamTransaction<C>where
C: UnwindSafe,
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