commit | 9d507dac1f78d87f2808ab247a44cd3860146375 | [log] [tgz] |
---|---|---|
author | Damien Miller <djm@mindrot.org> | Wed May 14 15:31:12 2003 +1000 |
committer | Damien Miller <djm@mindrot.org> | Wed May 14 15:31:12 2003 +1000 |
tree | b9871cbf124ebfacd49f18af92c0fb0d4ed53a9a | |
parent | 2e193e29f0f48dc2bf11cb3cf8a1806689ae1d55 [diff] [blame] |
- (djm) Die screaming if start_pam() is called when UsePAM=no
diff --git a/auth-pam.c b/auth-pam.c index 234e8f4..34326c2 100644 --- a/auth-pam.c +++ b/auth-pam.c
@@ -485,6 +485,9 @@ 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"); }