Trait pamsm::PamServiceModule
source · [−]pub trait PamServiceModule {
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.