Changeset View
Changeset View
Standalone View
Standalone View
crypto/openssh/auth2.c
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
#include "compat.h" | #include "compat.h" | ||||
#include "key.h" | #include "key.h" | ||||
#include "hostfile.h" | #include "hostfile.h" | ||||
#include "auth.h" | #include "auth.h" | ||||
#include "dispatch.h" | #include "dispatch.h" | ||||
#include "pathnames.h" | #include "pathnames.h" | ||||
#include "buffer.h" | #include "buffer.h" | ||||
#include "canohost.h" | #include "canohost.h" | ||||
#include "blacklist_client.h" | |||||
#ifdef GSSAPI | #ifdef GSSAPI | ||||
#include "ssh-gss.h" | #include "ssh-gss.h" | ||||
#endif | #endif | ||||
#include "monitor_wrap.h" | #include "monitor_wrap.h" | ||||
/* import */ | /* import */ | ||||
extern ServerOptions options; | extern ServerOptions options; | ||||
▲ Show 20 Lines • Show All 180 Lines • ▼ Show 20 Lines | if (authctxt->attempt++ == 0) { | ||||
authctxt->pw = PRIVSEP(getpwnamallow(user)); | authctxt->pw = PRIVSEP(getpwnamallow(user)); | ||||
authctxt->user = xstrdup(user); | authctxt->user = xstrdup(user); | ||||
if (authctxt->pw && strcmp(service, "ssh-connection")==0) { | if (authctxt->pw && strcmp(service, "ssh-connection")==0) { | ||||
authctxt->valid = 1; | authctxt->valid = 1; | ||||
debug2("input_userauth_request: setting up authctxt for %s", user); | debug2("input_userauth_request: setting up authctxt for %s", user); | ||||
} else { | } else { | ||||
logit("input_userauth_request: invalid user %s", user); | logit("input_userauth_request: invalid user %s", user); | ||||
authctxt->pw = fakepw(); | authctxt->pw = fakepw(); | ||||
BLACKLIST_NOTIFY(BLACKLIST_AUTH_FAIL); | |||||
#ifdef SSH_AUDIT_EVENTS | #ifdef SSH_AUDIT_EVENTS | ||||
PRIVSEP(audit_event(SSH_INVALID_USER)); | PRIVSEP(audit_event(SSH_INVALID_USER)); | ||||
#endif | #endif | ||||
} | } | ||||
#ifdef USE_PAM | #ifdef USE_PAM | ||||
if (options.use_pam) | if (options.use_pam) | ||||
PRIVSEP(start_pam(authctxt)); | PRIVSEP(start_pam(authctxt)); | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 391 Lines • Show Last 20 Lines |