diff options
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -210,10 +210,13 @@ input_userauth_request(int type, int plen, void *ctxt) | |||
210 | authctxt->valid = 1; | 210 | authctxt->valid = 1; |
211 | debug2("input_userauth_request: setting up authctxt for %s", user); | 211 | debug2("input_userauth_request: setting up authctxt for %s", user); |
212 | #ifdef USE_PAM | 212 | #ifdef USE_PAM |
213 | start_pam(pw); | 213 | start_pam(pw->pw_name); |
214 | #endif | 214 | #endif |
215 | } else { | 215 | } else { |
216 | log("input_userauth_request: illegal user %s", user); | 216 | log("input_userauth_request: illegal user %s", user); |
217 | #ifdef USE_PAM | ||
218 | start_pam("NOUSER"); | ||
219 | #endif | ||
217 | } | 220 | } |
218 | authctxt->user = xstrdup(user); | 221 | authctxt->user = xstrdup(user); |
219 | authctxt->service = xstrdup(service); | 222 | authctxt->service = xstrdup(service); |