summaryrefslogtreecommitdiffstats
path: root/auth-pam.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-05-14 15:31:12 +1000
committerDamien Miller <djm@mindrot.org>2003-05-14 15:31:12 +1000
commit9d507dac1f78d87f2808ab247a44cd3860146375 (patch)
treeb9871cbf124ebfacd49f18af92c0fb0d4ed53a9a /auth-pam.c
parent2e193e29f0f48dc2bf11cb3cf8a1806689ae1d55 (diff)
- (djm) Die screaming if start_pam() is called when UsePAM=no
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/auth-pam.c b/auth-pam.c
index 234e8f43..34326c24 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -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");
}