- (djm) Die screaming if start_pam() is called when UsePAM=no
This commit is contained in:
parent
2e193e29f0
commit
9d507dac1f
|
@ -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 $
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue