summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-05-14 15:11:48 +1000
committerDamien Miller <djm@mindrot.org>2003-05-14 15:11:48 +1000
commit4e448a31ae12e6f84caa7cdfc8b4c23db92459db (patch)
tree8f4c0885c8c91456b4d27d7f405e9125b83491a4 /sshd.c
parent9c617693c2250c62e5e326372bc783e3416a94b0 (diff)
- (djm) Add new UsePAM configuration directive to allow runtime control
over usage of PAM. This allows non-root use of sshd when built with --with-pam
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index 9e2e218c6..cb70fa0c6 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1544,7 +1544,8 @@ main(int ac, char **av)
1544 verbose("Closing connection to %.100s", remote_ip); 1544 verbose("Closing connection to %.100s", remote_ip);
1545 1545
1546#ifdef USE_PAM 1546#ifdef USE_PAM
1547 finish_pam(); 1547 if (options.use_pam)
1548 finish_pam();
1548#endif /* USE_PAM */ 1549#endif /* USE_PAM */
1549 1550
1550 packet_close(); 1551 packet_close();