summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--auth-pam.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2bf9cd7e5..a4e47e09a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -71,6 +71,7 @@
71 - (djm) Add new UsePAM configuration directive to allow runtime control 71 - (djm) Add new UsePAM configuration directive to allow runtime control
72 over usage of PAM. This allows non-root use of sshd when built with 72 over usage of PAM. This allows non-root use of sshd when built with
73 --with-pam 73 --with-pam
74 - (djm) Die screaming if start_pam() is called when UsePAM=no
74 75
7520030512 7620030512
76 - (djm) Redhat spec: Don't install profile.d scripts when not 77 - (djm) Redhat spec: Don't install profile.d scripts when not
@@ -1458,4 +1459,4 @@
1458 save auth method before monitor_reset_key_state(); bugzilla bug #284; 1459 save auth method before monitor_reset_key_state(); bugzilla bug #284;
1459 ok provos@ 1460 ok provos@
1460 1461
1461$Id: ChangeLog,v 1.2694 2003/05/14 05:11:48 djm Exp $ 1462$Id: ChangeLog,v 1.2695 2003/05/14 05:31:12 djm Exp $
diff --git a/auth-pam.c b/auth-pam.c
index 234e8f435..34326c242 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -485,6 +485,9 @@ KbdintDevice mm_sshpam_device = {
485void 485void
486start_pam(const char *user) 486start_pam(const char *user)
487{ 487{
488 if (!options.use_pam)
489 fatal("PAM: initialisation requested when UsePAM=no");
490
488 if (sshpam_init(user) == -1) 491 if (sshpam_init(user) == -1)
489 fatal("PAM: initialisation failed"); 492 fatal("PAM: initialisation failed");
490} 493}