#[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
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
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
impl Clone for PamReturnCode
Source§fn clone(&self) -> PamReturnCode
fn clone(&self) -> PamReturnCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more