version 1.153, 2019/01/19 21:38:24 |
version 1.154, 2019/01/19 21:41:18 |
|
|
|
|
if (authctxt->attempt++ == 0) { |
if (authctxt->attempt++ == 0) { |
/* setup auth context */ |
/* setup auth context */ |
authctxt->pw = PRIVSEP(getpwnamallow(user)); |
authctxt->pw = PRIVSEP(getpwnamallow(ssh, user)); |
if (authctxt->pw && strcmp(service, "ssh-connection")==0) { |
if (authctxt->pw && strcmp(service, "ssh-connection")==0) { |
authctxt->valid = 1; |
authctxt->valid = 1; |
debug2("%s: setting up authctxt for %s", |
debug2("%s: setting up authctxt for %s", |
|
|
} |
} |
|
|
/* Log before sending the reply */ |
/* Log before sending the reply */ |
auth_log(authctxt, authenticated, partial, method, submethod); |
auth_log(ssh, authenticated, partial, method, submethod); |
|
|
/* Update information exposed to session */ |
/* Update information exposed to session */ |
if (authenticated || partial) |
if (authenticated || partial) |
|
|
(authctxt->attempt > 1 || strcmp(method, "none") != 0)) |
(authctxt->attempt > 1 || strcmp(method, "none") != 0)) |
authctxt->failures++; |
authctxt->failures++; |
if (authctxt->failures >= options.max_authtries) |
if (authctxt->failures >= options.max_authtries) |
auth_maxtries_exceeded(authctxt); |
auth_maxtries_exceeded(ssh); |
methods = authmethods_get(authctxt); |
methods = authmethods_get(authctxt); |
debug3("%s: failure partial=%d next methods=\"%s\"", __func__, |
debug3("%s: failure partial=%d next methods=\"%s\"", __func__, |
partial, methods); |
partial, methods); |