From 7941855f09b067b639d72757ee3b1d5be1925d50 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 23 Apr 2002 20:28:48 +1000 Subject: - (djm) Make privsep work with PAM (still experimental) --- auth1.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'auth1.c') diff --git a/auth1.c b/auth1.c index c2a8936a..1f6fcb29 100644 --- a/auth1.c +++ b/auth1.c @@ -306,7 +306,8 @@ do_authloop(Authctxt *authctxt) authenticated = 0; #endif #ifdef USE_PAM - if (authenticated && !do_pam_account(pw->pw_name, client_user)) + if (!use_privsep && authenticated && + !do_pam_account(pw->pw_name, client_user)) authenticated = 0; #endif @@ -381,7 +382,7 @@ do_authentication(void) use_privsep ? " [net]" : ""); #ifdef USE_PAM - start_pam(authctxt->pw == NULL ? "NOUSER" : user); + PRIVSEP(start_pam(authctxt->pw == NULL ? "NOUSER" : user)); #endif /* -- cgit v1.2.3