summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-09-11 23:07:03 +1000
committerDarren Tucker <dtucker@zip.com.au>2004-09-11 23:07:03 +1000
commit77fc29eeb382974ae063227c249ee3b98646e38a (patch)
treefba14efc7adf195758fc0e556c88d8fcc772919c /monitor.c
parent4765679649c51a83e5ceb3d0c1e51e33db251f27 (diff)
- (dtucker) [auth-pam.c auth.h auth2-none.c auth2.c monitor.c monitor_wrap.c]
Bug #892: Send messages from failing PAM account modules to the client via SSH2_MSG_USERAUTH_BANNER messages. Note that this will not happen with SSH2 kbdint authentication, which need to be dealt with separately. ok djm@
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index b7463400e..00d4a785f 100644
--- a/monitor.c
+++ b/monitor.c
@@ -810,6 +810,9 @@ mm_answer_pam_account(int sock, Buffer *m)
810 ret = do_pam_account(); 810 ret = do_pam_account();
811 811
812 buffer_put_int(m, ret); 812 buffer_put_int(m, ret);
813 buffer_append(&loginmsg, "\0", 1);
814 buffer_put_cstring(m, buffer_ptr(&loginmsg));
815 buffer_clear(&loginmsg);
813 816
814 mm_request_send(sock, MONITOR_ANS_PAM_ACCOUNT, m); 817 mm_request_send(sock, MONITOR_ANS_PAM_ACCOUNT, m);
815 818