Changeset View
Changeset View
Standalone View
Standalone View
head/crypto/openssh/auth-pam.c
Show First 20 Lines • Show All 92 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 Buffer loginmsg; | extern Buffer loginmsg; | ||||
extern int compat20; | extern int compat20; | ||||
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 | ||||
▲ Show 20 Lines • Show All 680 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(BLACKLIST_AUTH_FAIL); | |||||
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_authctxt->user, | ||||
get_remote_name_or_ip(utmp_len, options.use_dns)); | get_remote_name_or_ip(utmp_len, options.use_dns)); | ||||
/* FALLTHROUGH */ | /* FALLTHROUGH */ | ||||
default: | default: | ||||
*num = 0; | *num = 0; | ||||
**echo_on = 0; | **echo_on = 0; | ||||
▲ Show 20 Lines • Show All 416 Lines • Show Last 20 Lines |