diff options
author | djm <djm> | 2003-05-14 05:31:12 +0000 |
---|---|---|
committer | djm <djm> | 2003-05-14 05:31:12 +0000 |
commit | 50ff6815769a40eb0b18f75cae71d825b97491db (patch) | |
tree | 98204bf49e4992d5355c58877ffa632461cf4ce2 /auth-pam.c | |
parent | c1df7056b4bb0a24ca5310bd7c02f8a7c1b6d97c (diff) | |
download | openssh-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.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"); } |