Struct pam_auth::Authenticator[][src]

pub struct Authenticator<'a, 'b> {
    pub close_on_drop: bool,
    // some fields omitted
}

Main struct to authenticate a user Currently closes the session on drop() but this might change!

Fields

Flag indicating whether the Authenticator should close the session on drop

Methods

impl<'a, 'b> Authenticator<'a, 'b>
[src]

Creates a new Authenticator with a given service name

Set the credentials which should be used in the authentication process. Currently only username/password combinations are supported

Perform the authentication with the provided credentials

Open a session for a previously authenticated user and initialize the environment appropriately (in PAM and regular enviroment variables).

Trait Implementations

impl<'a, 'b> Drop for Authenticator<'a, 'b>
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<'a, 'b> Send for Authenticator<'a, 'b>

impl<'a, 'b> Sync for Authenticator<'a, 'b>