Struct pamsm::Pam [−][src]
pub struct Pam(_);
Opaque PAM handle, with additional native methods available via PamLibExt
.
Trait Implementations
impl PamLibExt for Pam
[src]
impl PamLibExt for Pam
fn get_user(&self, prompt: Option<&str>) -> PamResult<Option<&CStr>>
[src]
fn get_user(&self, prompt: Option<&str>) -> PamResult<Option<&CStr>>
Get the username. If the PAM_USER item is not set, this function prompts for a username (like get_authtok). Read more
fn get_cached_user(&self) -> PamResult<Option<&CStr>>
[src]
fn get_cached_user(&self) -> PamResult<Option<&CStr>>
Get the username, i.e. the PAM_USER item. If it's not set return None.
fn get_cached_authtok(&self) -> PamResult<Option<&CStr>>
[src]
fn get_cached_authtok(&self) -> PamResult<Option<&CStr>>
Get the cached authentication token.
fn get_authtok(&self, prompt: Option<&str>) -> PamResult<Option<&CStr>>
[src]
fn get_authtok(&self, prompt: Option<&str>) -> PamResult<Option<&CStr>>
Get the cached authentication token or prompt the user for one if there isn't any.
fn set_authtok(&self, authtok: &CString) -> PamResult<()>
[src]
fn set_authtok(&self, authtok: &CString) -> PamResult<()>
fn get_rhost(&self) -> PamResult<Option<&CStr>>
[src]
fn get_rhost(&self) -> PamResult<Option<&CStr>>
Get the remote hostname.
fn get_ruser(&self) -> PamResult<Option<&CStr>>
[src]
fn get_ruser(&self) -> PamResult<Option<&CStr>>
Get the remote username.