diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2005-01-10 09:45:37 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2005-01-10 09:45:37 +0000 |
commit | 48e00c34bec7be0eb88aa3eabc89cac38506dbf2 (patch) | |
tree | ad7b2c5d164020a0c575f1aba98823849601de1b /modules/pam_unix | |
parent | 8371672714bbe3a7c171143a657083271cad7c71 (diff) | |
download | pam-48e00c34bec7be0eb88aa3eabc89cac38506dbf2.tar.gz pam-48e00c34bec7be0eb88aa3eabc89cac38506dbf2.tar.bz2 pam-48e00c34bec7be0eb88aa3eabc89cac38506dbf2.zip |
Relevant BUGIDs: 872943
Purpose of commit: bugfix
Commit summary:
---------------
Fix return value for unknown user (This is PAM_USER_UNKNOWN and
not PAM_AUTHINFO_UNAVAIL).
Diffstat (limited to 'modules/pam_unix')
-rw-r--r-- | modules/pam_unix/support.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/pam_unix/support.c b/modules/pam_unix/support.c index 84114884..a9df0c5f 100644 --- a/modules/pam_unix/support.c +++ b/modules/pam_unix/support.c @@ -699,7 +699,10 @@ int _unix_verify_password(pam_handle_t * pamh, const char *name } else { D(("user's record unavailable")); p = NULL; - retval = PAM_AUTHINFO_UNAVAIL; + if (pwd == NULL) + retval = PAM_USER_UNKNOWN; + else + retval = PAM_AUTHINFO_UNAVAIL; if (on(UNIX_AUDIT, ctrl)) { /* this might be a typo and the user has given a password instead of a username. Careful with this. */ |