diff options
author | Darren Tucker <dtucker@zip.com.au> | 2004-09-11 23:07:03 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2004-09-11 23:07:03 +1000 |
commit | 77fc29eeb382974ae063227c249ee3b98646e38a (patch) | |
tree | fba14efc7adf195758fc0e556c88d8fcc772919c /monitor.c | |
parent | 4765679649c51a83e5ceb3d0c1e51e33db251f27 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 | ||