Struct pam_kanidm::PamKanidm
source · pub struct PamKanidm;
Trait Implementations§
source§impl PamHooks for PamKanidm
impl PamHooks for PamKanidm
source§fn sm_authenticate(
pamh: &PamHandle,
args: Vec<&CStr>,
_flags: PamFlag,
) -> PamResultCode
fn sm_authenticate( pamh: &PamHandle, args: Vec<&CStr>, _flags: PamFlag, ) -> PamResultCode
This function performs the task of authenticating the user.
source§fn acct_mgmt(
pamh: &PamHandle,
args: Vec<&CStr>,
_flags: PamFlag,
) -> PamResultCode
fn acct_mgmt( pamh: &PamHandle, args: Vec<&CStr>, _flags: PamFlag, ) -> PamResultCode
This function performs the task of establishing whether the user is permitted to gain access at
this time. It should be understood that the user has previously been validated by an
authentication module. This function checks for other things. Such things might be: the time of
day or the date, the terminal line, remote hostname, etc. This function may also determine
things like the expiration on passwords, and respond that the user change it before continuing.
source§fn sm_open_session(
pamh: &PamHandle,
args: Vec<&CStr>,
_flags: PamFlag,
) -> PamResultCode
fn sm_open_session( pamh: &PamHandle, args: Vec<&CStr>, _flags: PamFlag, ) -> PamResultCode
This function is called to commence a session.
source§fn sm_close_session(
pamh: &PamHandle,
args: Vec<&CStr>,
_flags: PamFlag,
) -> PamResultCode
fn sm_close_session( pamh: &PamHandle, args: Vec<&CStr>, _flags: PamFlag, ) -> PamResultCode
This function is called to terminate a session.
source§fn sm_chauthtok(
pamh: &PamHandle,
args: Vec<&CStr>,
_flags: PamFlag,
) -> PamResultCode
fn sm_chauthtok( pamh: &PamHandle, args: Vec<&CStr>, _flags: PamFlag, ) -> PamResultCode
This function is used to (re-)set the authentication token of the user. Read more
source§fn sm_setcred(
pamh: &PamHandle,
args: Vec<&CStr>,
_flags: PamFlag,
) -> PamResultCode
fn sm_setcred( pamh: &PamHandle, args: Vec<&CStr>, _flags: PamFlag, ) -> PamResultCode
This function performs the task of altering the credentials of the user with respect to the
corresponding authorization scheme. Generally, an authentication module may have access to more
information about a user than their authentication token. This function is used to make such
information available to the application. It should only be called after the user has been
authenticated but before a session has been established.
Auto Trait Implementations§
impl Freeze for PamKanidm
impl RefUnwindSafe for PamKanidm
impl Send for PamKanidm
impl Sync for PamKanidm
impl Unpin for PamKanidm
impl UnwindSafe for PamKanidm
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
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