pub trait PamServiceModule {
    // Provided methods
    fn open_session(_: Pam, _: PamFlags, _: Vec<String>) -> PamError { ... }
    fn close_session(_: Pam, _: PamFlags, _: Vec<String>) -> PamError { ... }
    fn authenticate(_: Pam, _: PamFlags, _: Vec<String>) -> PamError { ... }
    fn setcred(_: Pam, _: PamFlags, _: Vec<String>) -> PamError { ... }
    fn acct_mgmt(_: Pam, _: PamFlags, _: Vec<String>) -> PamError { ... }
    fn chauthtok(_: Pam, _: PamFlags, _: Vec<String>) -> PamError { ... }
}
Expand description

Default service module implementation. All default functions return SERVICE_ERR. You can override functions depending on what kind of module you implement. See the respective pam_sm_* man pages for documentation.

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§