summaryrefslogtreecommitdiff
path: root/auth-pam.c
diff options
context:
space:
mode:
authordjm <djm>2003-05-14 05:31:12 +0000
committerdjm <djm>2003-05-14 05:31:12 +0000
commit50ff6815769a40eb0b18f75cae71d825b97491db (patch)
tree98204bf49e4992d5355c58877ffa632461cf4ce2 /auth-pam.c
parentc1df7056b4bb0a24ca5310bd7c02f8a7c1b6d97c (diff)
downloadopenssh-50ff6815769a40eb0b18f75cae71d825b97491db.tar.gz
- (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");
}