- (djm) Die screaming if start_pam() is called when UsePAM=no

This commit is contained in:
Damien Miller 2003-05-14 15:31:12 +10:00
parent 2e193e29f0
commit 9d507dac1f
2 changed files with 5 additions and 1 deletions

View File

@ -71,6 +71,7 @@
- (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
- (djm) Die screaming if start_pam() is called when UsePAM=no
20030512
- (djm) Redhat spec: Don't install profile.d scripts when not
@ -1458,4 +1459,4 @@
save auth method before monitor_reset_key_state(); bugzilla bug #284;
ok provos@
$Id: ChangeLog,v 1.2694 2003/05/14 05:11:48 djm Exp $
$Id: ChangeLog,v 1.2695 2003/05/14 05:31:12 djm Exp $

View File

@ -485,6 +485,9 @@ KbdintDevice mm_sshpam_device = {
void
start_pam(const char *user)
{
if (!options.use_pam)
fatal("PAM: initialisation requested when UsePAM=no");
if (sshpam_init(user) == -1)
fatal("PAM: initialisation failed");
}