Lines Matching defs:authctxt

118 auth1_process_password(Authctxt *authctxt)
133 authenticated = PRIVSEP(auth_password(authctxt, password));
143 auth1_process_rsa(Authctxt *authctxt)
153 authenticated = auth_rsa(authctxt, n);
161 auth1_process_rhosts_rsa(Authctxt *authctxt)
189 authenticated = auth_rhosts_rsa(authctxt, client_user,
193 auth_info(authctxt, "ruser %.100s", client_user);
200 auth1_process_tis_challenge(Authctxt *authctxt)
204 if ((challenge = get_challenge(authctxt)) == NULL)
219 auth1_process_tis_response(Authctxt *authctxt)
227 authenticated = verify_response(authctxt, response);
239 do_authloop(Authctxt *authctxt)
246 authctxt->valid ? "" : "invalid user ", authctxt->user);
253 PRIVSEP(auth_password(authctxt, ""))) {
258 auth_log(authctxt, 1, 0, "without authentication",
287 abandon_challenge_response(authctxt);
289 if (authctxt->failures >= options.max_authtries)
302 authenticated = meth->method(authctxt);
307 if (authctxt->as) {
308 auth_close(authctxt->as);
309 authctxt->as = NULL;
312 if (!authctxt->valid && authenticated)
314 authctxt->user);
317 if (authenticated && cray_access_denied(authctxt->user)) {
319 fatal("Access denied for user %s.",authctxt->user);
325 if (authenticated && authctxt->pw->pw_uid == 0 &&
341 "configuration", authctxt->user);
357 auth_log(authctxt, authenticated, 0, get_authname(type), NULL);
365 if (++authctxt->failures >= options.max_authtries) {
369 auth_maxtries_exceeded(authctxt);
383 do_authentication(Authctxt *authctxt)
398 authctxt->user = user;
399 authctxt->style = style;
402 if ((authctxt->pw = PRIVSEP(getpwnamallow(user))) != NULL)
403 authctxt->valid = 1;
406 authctxt->pw = fakepw();
414 setproctitle("%s%s", authctxt->valid ? user : "unknown",
419 PRIVSEP(start_pam(authctxt));
427 if (!use_privsep && getuid() != 0 && authctxt->pw &&
428 authctxt->pw->pw_uid != getuid())
436 do_authloop(authctxt);