Changeset View
Changeset View
Standalone View
Standalone View
crypto/openssh/auth-pam.c
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | |||||
#include "misc.h" | #include "misc.h" | ||||
#include "servconf.h" | #include "servconf.h" | ||||
#include "ssh2.h" | #include "ssh2.h" | ||||
#include "auth-options.h" | #include "auth-options.h" | ||||
#ifdef GSSAPI | #ifdef GSSAPI | ||||
#include "ssh-gss.h" | #include "ssh-gss.h" | ||||
#endif | #endif | ||||
#include "monitor_wrap.h" | #include "monitor_wrap.h" | ||||
#include "blacklist_client.h" | |||||
extern ServerOptions options; | extern ServerOptions options; | ||||
extern struct sshbuf *loginmsg; | extern struct sshbuf *loginmsg; | ||||
extern u_int utmp_len; | extern u_int utmp_len; | ||||
/* so we don't silently change behaviour */ | /* so we don't silently change behaviour */ | ||||
#ifdef USE_POSIX_THREADS | #ifdef USE_POSIX_THREADS | ||||
# error "USE_POSIX_THREADS replaced by UNSUPPORTED_POSIX_THREADS_HACK" | # error "USE_POSIX_THREADS replaced by UNSUPPORTED_POSIX_THREADS_HACK" | ||||
▲ Show 20 Lines • Show All 781 Lines • ▼ Show 20 Lines | case PAM_SUCCESS: | ||||
"failed"); | "failed"); | ||||
import_environments(buffer); | import_environments(buffer); | ||||
*num = 0; | *num = 0; | ||||
**echo_on = 0; | **echo_on = 0; | ||||
ctxt->pam_done = 1; | ctxt->pam_done = 1; | ||||
free(msg); | free(msg); | ||||
return (0); | return (0); | ||||
} | } | ||||
// BLACKLIST_NOTIFY(ssh, BLACKLIST_BAD_USER, | |||||
// sshpam_authctxt->user); | |||||
emaste: We do not have `ssh` context here. | |||||
error("PAM: %s for %s%.100s from %.100s", msg, | error("PAM: %s for %s%.100s from %.100s", msg, | ||||
sshpam_authctxt->valid ? "" : "illegal user ", | sshpam_authctxt->valid ? "" : "illegal user ", | ||||
sshpam_authctxt->user, sshpam_rhost); | sshpam_authctxt->user, sshpam_rhost); | ||||
/* FALLTHROUGH */ | /* FALLTHROUGH */ | ||||
default: | default: | ||||
*num = 0; | *num = 0; | ||||
**echo_on = 0; | **echo_on = 0; | ||||
free(msg); | free(msg); | ||||
▲ Show 20 Lines • Show All 465 Lines • Show Last 20 Lines |
We do not have ssh context here.