summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/auth/pampass.c4
-rw-r--r--source/passdb/pampass.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source/auth/pampass.c b/source/auth/pampass.c
index 277544ed918..bf1aca1e2c6 100644
--- a/source/auth/pampass.c
+++ b/source/auth/pampass.c
@@ -294,10 +294,10 @@ static BOOL pam_account(pam_handle_t *pamh, char * user, char * password, BOOL p
case PAM_CRED_EXPIRED:
DEBUG(0, ("PAM: Credentials for user: \"%s\" EXPIRED!", user ));
break;
- case PAM_CRED_UNKNOWN:
+ case PAM_USER_UNKNOWN:
DEBUG(0, ("PAM: User: \"%s\" is NOT known so can not set credentials!", user ));
break;
- case PAM_CRED_UNKNOWN:
+ case PAM_CRED_ERR:
DEBUG(0, ("PAM: Unknown setcredentials error - unable to set credentials for %s", user ));
break;
case PAM_SUCCESS:
diff --git a/source/passdb/pampass.c b/source/passdb/pampass.c
index 277544ed918..bf1aca1e2c6 100644
--- a/source/passdb/pampass.c
+++ b/source/passdb/pampass.c
@@ -294,10 +294,10 @@ static BOOL pam_account(pam_handle_t *pamh, char * user, char * password, BOOL p
case PAM_CRED_EXPIRED:
DEBUG(0, ("PAM: Credentials for user: \"%s\" EXPIRED!", user ));
break;
- case PAM_CRED_UNKNOWN:
+ case PAM_USER_UNKNOWN:
DEBUG(0, ("PAM: User: \"%s\" is NOT known so can not set credentials!", user ));
break;
- case PAM_CRED_UNKNOWN:
+ case PAM_CRED_ERR:
DEBUG(0, ("PAM: Unknown setcredentials error - unable to set credentials for %s", user ));
break;
case PAM_SUCCESS: