summaryrefslogtreecommitdiffstats
path: root/auth1.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-04-23 12:28:48 +0200
committerDamien Miller <djm@mindrot.org>2002-04-23 12:28:48 +0200
commit7941855f09b067b639d72757ee3b1d5be1925d50 (patch)
tree0e94366b3fdd991cae8de9d0ce04a4f374fa12cf /auth1.c
parent - (djm) Bug #222: Fix tests for getaddrinfo on OSF/1. Spotted by (diff)
downloadopenssh-7941855f09b067b639d72757ee3b1d5be1925d50.tar.xz
openssh-7941855f09b067b639d72757ee3b1d5be1925d50.zip
- (djm) Make privsep work with PAM (still experimental)
Diffstat (limited to 'auth1.c')
-rw-r--r--auth1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/auth1.c b/auth1.c
index c2a8936ae..1f6fcb29b 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
/*