PamReturnCode

Enum PamReturnCode 

Source
#[repr(C)]
pub enum PamReturnCode {
Show 32 variants System_Err = 4, Success = 0, Open_Err = 1, Symbol_Err = 2, Service_Err = 3, Buf_Err = 5, Perm_Denied = 6, Auth_Err = 7, Cred_Insufficient = 8, Authinfo_Unavail = 9, User_Unknown = 10, MaxTries = 11, New_Authtok_Reqd = 12, Acct_Expired = 13, Session_Err = 14, Cred_Unavail = 15, Cred_Expired = 16, Cred_Err = 17, No_Module_Data = 18, Conv_Err = 19, AuthTok_Err = 20, AuthTok_Recovery_Err = 21, AuthTok_Lock_Busy = 22, AuthTok_Disable_Aging = 23, Try_Again = 24, Ignore = 25, AuthTok_Expired = 27, Abort = 26, Module_Unknown = 28, Bad_Item = 29, Conv_Again = 30, Incomplete = 31,
}
Expand description

The Linux-PAM return values

Variants§

§

System_Err = 4

System error

§

Success = 0

Successful function return

§

Open_Err = 1

dlopen() failure when dynamically loading a service module

§

Symbol_Err = 2

Symbol not found

§

Service_Err = 3

Error in service module

§

Buf_Err = 5

Memory buffer error

§

Perm_Denied = 6

Permission denied

§

Auth_Err = 7

Authentication failure

§

Cred_Insufficient = 8

Can not access authentication data due to insufficient credentials

§

Authinfo_Unavail = 9

Underlying authentication service can not retrieve authentication information

§

User_Unknown = 10

User not known to the underlying authentication module

§

MaxTries = 11

An authentication service has maintained a retry count which has been reached. No further retries should be attempted

§

New_Authtok_Reqd = 12

New authentication token required. This is normally returned if the machine security policies require that the password should be changed beccause the password is NULL or it has aged

§

Acct_Expired = 13

User account has expired

§

Session_Err = 14

Can not make/remove an entry for the specified session

§

Cred_Unavail = 15

Underlying authentication service can not retrieve user credentials unavailable

§

Cred_Expired = 16

User credentials expired

§

Cred_Err = 17

Failure setting user credentials

§

No_Module_Data = 18

No module specific data is present

§

Conv_Err = 19

Conversation error

§

AuthTok_Err = 20

Authentication token manipulation error

§

AuthTok_Recovery_Err = 21

Authentication information cannot be recovered

§

AuthTok_Lock_Busy = 22

Authentication token lock busy

§

AuthTok_Disable_Aging = 23

Authentication token aging disabled

§

Try_Again = 24

Preliminary check by password service

§

Ignore = 25

Ignore underlying account module regardless of whether the control flag is required, optional, or sufficient

§

AuthTok_Expired = 27

Critical error (?module fail now request)

§

Abort = 26

user’s authentication token has expired

§

Module_Unknown = 28

module is not known

§

Bad_Item = 29

Bad item passed to pam_*_item()

§

Conv_Again = 30

conversation function is event driven and data is not available yet

§

Incomplete = 31

please call this function again to complete authentication stack. Before calling again as isize, verify that conversation is completed

Trait Implementations§

Source§

impl Clone for PamReturnCode

Source§

fn clone(&self) -> PamReturnCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PamReturnCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for PamReturnCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<PamReturnCode> for PamError

Source§

fn from(err: PamReturnCode) -> PamError

Converts to this type from the input type.
Source§

impl From<i32> for PamReturnCode

Source§

fn from(value: i32) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for PamReturnCode

Source§

fn eq(&self, other: &PamReturnCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for PamReturnCode

Source§

impl StructuralPartialEq for PamReturnCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.