Displaying 3 results from an estimated 3 matches for "ssh2_msg_userauth_banner".
2004 Jul 05
1
[Bug 892] Send output from PAM account modules to user
http://bugzilla.mindrot.org/show_bug.cgi?id=892
Summary: Send output from PAM account modules to user
Product: Portable OpenSSH
Version: -current
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: PAM support
AssignedTo: openssh-bugs at mindrot.org
2003 Nov 13
0
[PATCH] Make PAM chauthtok_conv function into tty_conv
...s options;
+extern Buffer loginmsg;
+extern int compat20;
#define __unused
@@ -421,13 +423,9 @@ sshpam_query(void *ctx, char **name, cha
case PAM_AUTH_ERR:
if (**prompts != NULL) {
/* drain any accumulated messages */
-#if 0 /* XXX - not compatible with privsep */
- packet_start(SSH2_MSG_USERAUTH_BANNER);
- packet_put_cstring(**prompts);
- packet_put_cstring("");
- packet_send();
- packet_write_wait();
-#endif
+ debug("%s: %s", __func__, **prompts);
+ buffer_append(&loginmsg, **prompts,
+ strlen(**prompts));
xfree(**prompts);
**prompts = N...
2003 Oct 28
2
Privilege separation
...3
+++ openssh-3.7.1p2/auth-pam.c Sat Oct 4 23:54:05 2003
@@ -419,7 +419,7 @@
case PAM_AUTH_ERR:
if (**prompts != NULL) {
/* drain any accumulated messages */
-#if 0 /* XXX - not compatible with privsep */
+#ifdef DISABLE_PRIVSEP /* XXX - not compatible with privsep */
packet_start(SSH2_MSG_USERAUTH_BANNER);
packet_put_cstring(**prompts);
packet_put_cstring("");
@@ -500,6 +500,7 @@
sshpam_free_ctx
};
+#ifndef DISABLE_PRIVSEP
KbdintDevice mm_sshpam_device = {
"pam",
mm_sshpam_init_ctx,
@@ -507,6 +508,7 @@
mm_sshpam_respond,
mm_sshpam_free_ctx
};
+#endif /*...