diff options
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: auth2.c,v 1.85 2002/02/24 19:14:59 markus Exp $"); | 26 | RCSID("$OpenBSD: auth2.c,v 1.86 2002/03/17 20:25:56 provos Exp $"); |
27 | 27 | ||
28 | #include <openssl/evp.h> | 28 | #include <openssl/evp.h> |
29 | 29 | ||
@@ -184,8 +184,8 @@ input_userauth_request(int type, u_int32_t seq, void *ctxt) | |||
184 | if (authctxt->attempt++ == 0) { | 184 | if (authctxt->attempt++ == 0) { |
185 | /* setup auth context */ | 185 | /* setup auth context */ |
186 | struct passwd *pw = NULL; | 186 | struct passwd *pw = NULL; |
187 | pw = getpwnam(user); | 187 | pw = getpwnamallow(user); |
188 | if (pw && allowed_user(pw) && strcmp(service, "ssh-connection")==0) { | 188 | if (pw && strcmp(service, "ssh-connection")==0) { |
189 | authctxt->pw = pwcopy(pw); | 189 | authctxt->pw = pwcopy(pw); |
190 | authctxt->valid = 1; | 190 | authctxt->valid = 1; |
191 | debug2("input_userauth_request: setting up authctxt for %s", user); | 191 | debug2("input_userauth_request: setting up authctxt for %s", user); |