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