summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-03-22 01:24:38 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-03-22 01:24:38 +0000
commit2ae18f40a70632eb87eca114980649dae8c476ff (patch)
treef9d5dd660441f05c1ff96c48eda5e626b06c69f3 /auth2.c
parenteacc71b558d29c243ea540c3d6acd2cf6ca15552 (diff)
- provos@cvs.openbsd.org 2002/03/17 20:25:56
[auth.c auth.h auth1.c auth2.c] getpwnamallow returns struct passwd * only if user valid; okay markus@
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);