summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth2.c b/auth2.c
index f2a801ecc..c5ab08067 100644
--- a/auth2.c
+++ b/auth2.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: auth2.c,v 1.85 2002/02/24 19:14:59 markus Exp $"); 26RCSID("$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);