- (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
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");
}