diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-09-28 22:33:27 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-09-28 22:33:27 +1000 |
commit | 7b1e69584611837d58f2651ec4e90210e1b26afe (patch) | |
tree | 76434cb868d3f98682c3b66590a5c3fb606e6cf9 | |
parent | 46e7ba5d53b13787f56402910e0b8e8f5c2248b3 (diff) | |
download | openssh-git-7b1e69584611837d58f2651ec4e90210e1b26afe.tar.gz |
- (dtucker) [auth-pam.c] Bug #1028: send final non-query messages from
PAM via keyboard-interactive. Patch tested by the folks at Vintela.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | auth-pam.c | 14 |
2 files changed, 15 insertions, 3 deletions
@@ -1,5 +1,7 @@ 20050928 - (dtucker) [entropy.c] Use u_char for receiving RNG seed for consistency. + - (dtucker) [auth-pam.c] Bug #1028: send final non-query messages from + PAM via keyboard-interactive. Patch tested by the folks at Vintela. 20050927 - (dtucker) [entropy.c] Remove unnecessary tests for getuid and geteuid @@ -3023,4 +3025,4 @@ - (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu -$Id: ChangeLog,v 1.3897 2005/09/27 22:26:30 dtucker Exp $ +$Id: ChangeLog,v 1.3898 2005/09/28 12:33:27 dtucker Exp $ @@ -47,7 +47,7 @@ /* Based on $FreeBSD: src/crypto/openssh/auth2-pam-freebsd.c,v 1.11 2003/03/31 13:48:18 des Exp $ */ #include "includes.h" -RCSID("$Id: auth-pam.c,v 1.126 2005/07/17 07:18:50 djm Exp $"); +RCSID("$Id: auth-pam.c,v 1.127 2005/09/28 12:33:27 dtucker Exp $"); #ifdef USE_PAM #if defined(HAVE_SECURITY_PAM_APPL_H) @@ -716,8 +716,18 @@ sshpam_query(void *ctx, char **name, char **info, plen++; xfree(msg); break; - case PAM_SUCCESS: case PAM_AUTH_ERR: + debug3("PAM: PAM_AUTH_ERR"); + if (**prompts != NULL && strlen(**prompts) != 0) { + *info = **prompts; + **prompts = NULL; + *num = 0; + **echo_on = 0; + ctxt->pam_done = -1; + return 0; + } + /* FALLTHROUGH */ + case PAM_SUCCESS: if (**prompts != NULL) { /* drain any accumulated messages */ debug("PAM: %s", **prompts); |