diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2011-04-29 18:21:30 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2011-04-29 18:21:30 +0000 |
commit | c8ba52b7945c5445579358cf30f3188a80a9f00f (patch) | |
tree | 7aafc3a636050b5d8925136d6298e5cacc70f254 | |
parent | 164bd0df051148e4e85b10c1dd4455c051f5ff9c (diff) |
support more PAM status codes over the nslcd protocol
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1440 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | nslcd.h | 2 | ||||
-rw-r--r-- | pam/pam.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -252,8 +252,10 @@ #define NSLCD_PAM_NEW_AUTHTOK_REQD 12 /* Password expired */ #define NSLCD_PAM_ACCT_EXPIRED 13 /* Account expired */ #define NSLCD_PAM_SESSION_ERR 14 /* Cannot make/remove session record */ +#define NSLCD_PAM_AUTHTOK_ERR 20 /* Authentication token manipulation error */ #define NSLCD_PAM_AUTHTOK_DISABLE_AGING 23 /* Password aging disabled */ #define NSLCD_PAM_IGNORE 25 /* Ignore module */ #define NSLCD_PAM_ABORT 26 /* Fatal error */ +#define NSLCD_PAM_AUTHTOK_EXPIRED 27 /* authentication token has expired */ #endif /* not _NSLCD_H */ @@ -239,9 +239,11 @@ static int nslcd2pam_rc(pam_handle_t *pamh,int rc) map(PAM_NEW_AUTHTOK_REQD); map(PAM_ACCT_EXPIRED); map(PAM_SESSION_ERR); + map(PAM_AUTHTOK_ERR); map(PAM_AUTHTOK_DISABLE_AGING); map(PAM_IGNORE); map(PAM_ABORT); + map(PAM_AUTHTOK_EXPIRED); default: pam_syslog(pamh,LOG_ERR,"unknown NSLCD_PAM_* code returned: %d",rc); return PAM_ABORT; |