diff options
author | Damien Miller <djm@mindrot.org> | 2003-05-14 15:31:12 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-05-14 15:31:12 +1000 |
commit | 9d507dac1f78d87f2808ab247a44cd3860146375 (patch) | |
tree | b9871cbf124ebfacd49f18af92c0fb0d4ed53a9a /auth-pam.c | |
parent | 2e193e29f0f48dc2bf11cb3cf8a1806689ae1d55 (diff) |
- (djm) Die screaming if start_pam() is called when UsePAM=no
Diffstat (limited to 'auth-pam.c')
-rw-r--r-- | auth-pam.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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"); } |