diff options
author | Damien Miller <djm@mindrot.org> | 2003-08-25 13:08:49 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-08-25 13:08:49 +1000 |
commit | 1f499fd3688d034daf787859044ede73767b6141 (patch) | |
tree | 0fec594fff3ac5fb6cc4faab19924e047db10207 /monitor_wrap.c | |
parent | e41bba584737f028579961ddf6669b6a768e47e7 (diff) |
- (djm) Bug #564: Perform PAM account checks for all authentications when
UsePAM=yes; ok dtucker
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r-- | monitor_wrap.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c index c7ba86ffc..9e7e6b3c3 100644 --- a/monitor_wrap.c +++ b/monitor_wrap.c | |||
@@ -682,6 +682,30 @@ mm_start_pam(char *user) | |||
682 | buffer_free(&m); | 682 | buffer_free(&m); |
683 | } | 683 | } |
684 | 684 | ||
685 | u_int | ||
686 | mm_do_pam_account(void) | ||
687 | { | ||
688 | Buffer m; | ||
689 | u_int ret; | ||
690 | |||
691 | debug3("%s entering", __func__); | ||
692 | if (!options.use_pam) | ||
693 | fatal("UsePAM=no, but ended up in %s anyway", __func__); | ||
694 | |||
695 | buffer_init(&m); | ||
696 | mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_PAM_ACCOUNT, &m); | ||
697 | |||
698 | mm_request_receive_expect(pmonitor->m_recvfd, | ||
699 | MONITOR_ANS_PAM_ACCOUNT, &m); | ||
700 | ret = buffer_get_int(&m); | ||
701 | |||
702 | buffer_free(&m); | ||
703 | |||
704 | debug3("%s returning %d", __func__, ret); | ||
705 | |||
706 | return (ret); | ||
707 | } | ||
708 | |||
685 | void * | 709 | void * |
686 | mm_sshpam_init_ctx(Authctxt *authctxt) | 710 | mm_sshpam_init_ctx(Authctxt *authctxt) |
687 | { | 711 | { |