Lines Matching refs:Authctxt
48 static int auth1_process_password(Authctxt *, char *, size_t);
49 static int auth1_process_rsa(Authctxt *, char *, size_t);
50 static int auth1_process_rhosts_rsa(Authctxt *, char *, size_t);
51 static int auth1_process_tis_challenge(Authctxt *, char *, size_t);
52 static int auth1_process_tis_response(Authctxt *, char *, size_t);
60 int (*method)(Authctxt *, char *, size_t);
115 auth1_process_password(Authctxt *authctxt, char *info, size_t infolen)
131 authenticated = PRIVSEP(auth_password(authctxt, password));
146 auth1_process_rsa(Authctxt *authctxt, char *info, size_t infolen)
156 authenticated = auth_rsa(authctxt, n);
164 auth1_process_rhosts_rsa(Authctxt *authctxt, char *info, size_t infolen)
192 authenticated = auth_rhosts_rsa(authctxt, client_user,
203 auth1_process_tis_challenge(Authctxt *authctxt, char *info, size_t infolen)
207 if ((challenge = get_challenge(authctxt)) == NULL)
222 auth1_process_tis_response(Authctxt *authctxt, char *info, size_t infolen)
230 authenticated = verify_response(authctxt, response);
242 do_authloop(Authctxt *authctxt)
250 authctxt->valid ? "" : "invalid user ", authctxt->user);
259 PRIVSEP(auth_password(authctxt, "")))
266 auth_log(authctxt, 1, "without authentication", "");
295 abandon_challenge_response(authctxt);
297 if (authctxt->failures >= options.max_authtries)
310 authenticated = meth->method(authctxt, info, sizeof(info));
315 if (authctxt->as) {
316 auth_close(authctxt->as);
317 authctxt->as = NULL;
320 if (!authctxt->valid && authenticated)
322 authctxt->user);
325 if (authenticated && cray_access_denied(authctxt->user)) {
327 fatal("Access denied for user %s.",authctxt->user);
333 if (authenticated && authctxt->pw->pw_uid == 0 &&
349 "configuration", authctxt->user);
365 auth_log(authctxt, authenticated, get_authname(type), info);
375 if (++authctxt->failures >= options.max_authtries) {
379 packet_disconnect(AUTH_FAIL_MSG, authctxt->user);
393 do_authentication(Authctxt *authctxt)
408 authctxt->user = user;
409 authctxt->style = style;
412 if ((authctxt->pw = PRIVSEP(getpwnamallow(user))) != NULL)
413 authctxt->valid = 1;
416 authctxt->pw = fakepw();
419 setproctitle("%s%s", authctxt->valid ? user : "unknown",
424 PRIVSEP(start_pam(authctxt));
432 if (!use_privsep && getuid() != 0 && authctxt->pw &&
433 authctxt->pw->pw_uid != getuid())
441 do_authloop(authctxt);