diff options
author | Pavel Reichl <preichl@redhat.com> | 2015-02-11 19:38:16 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-02-23 13:47:47 +0100 |
commit | a61d6d01a4e89ec14175af135e84f1cac55af748 (patch) | |
tree | 309f9c46dcd60a1d933ebdc126011739418215fa /src/sss_client/sss_cli.h | |
parent | fa0a9bad84d060a1adf8dd44f35d366e14f54d58 (diff) | |
download | sssd-a61d6d01a4e89ec14175af135e84f1cac55af748.tar.gz sssd-a61d6d01a4e89ec14175af135e84f1cac55af748.tar.xz sssd-a61d6d01a4e89ec14175af135e84f1cac55af748.zip |
PAM: do not reject abruptly
If account has expired then pass message.
Resolves:
https://fedorahosted.org/sssd/ticket/2050
Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/sss_client/sss_cli.h')
-rw-r--r-- | src/sss_client/sss_cli.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/sss_client/sss_cli.h b/src/sss_client/sss_cli.h index 6286077fc..d508a0671 100644 --- a/src/sss_client/sss_cli.h +++ b/src/sss_client/sss_cli.h @@ -461,15 +461,25 @@ enum user_info_type { * indicates that no message is following. * @param String with the specified * length. */ + SSS_PAM_USER_INFO_GRACE_LOGIN, /**< Warn the user that the password is * expired and inform about the remaining * number of grace logins. * @param The number of remaining grace * logins as uint32_t */ - SSS_PAM_USER_INFO_EXPIRE_WARN /**< Warn the user that the password will - * expire soon. - * @param Number of seconds before the user's - * password will expire. */ + SSS_PAM_USER_INFO_EXPIRE_WARN, /**< Warn the user that the password will + * expire soon. + * @param Number of seconds before the + * user's password will expire. */ + + SSS_PAM_USER_INFO_ACCOUNT_EXPIRED, /**< Tell the user that the account + * has expired and optionally give + * a reason. + * @param Size of the message as + * unsigned 32-bit integer value. A + * value of 0 indicates that no message + * is following. @param String with the + * specified length. */ }; /** * @} |