Lines Matching defs:authctxt

74 do_authloop(Authctxt *authctxt)
85 struct passwd *pw = authctxt->pw;
88 authctxt->valid ? "" : "illegal user ", authctxt->user);
95 auth_password(authctxt, "")) {
96 auth_log(authctxt, 1, "without authentication", "");
114 authctxt->v1_auth_type = type = packet_read();
115 authctxt->v1_auth_name = get_authname(type);
117 authctxt->attempt++;
137 if (auth_krb4(authctxt, &tkt,
158 if (auth_krb5(authctxt, &tkt,
261 authctxt->init_attempt++;
276 if (authctxt->init_failures <
279 auth_password(authctxt, password);
288 char *challenge = get_challenge(authctxt);
306 authenticated = verify_response(authctxt, response);
321 if (authctxt->as) {
322 auth_close(authctxt->as);
323 authctxt->as = NULL;
326 if (!authctxt->valid && authenticated) {
329 authctxt->user);
334 cray_login_failure(authctxt->user, IA_UDBERR);
335 if (authenticated && cray_access_denied(authctxt->user)) {
337 fatal("Access denied for user %s.",authctxt->user);
350 if (authenticated && authctxt->pw->pw_uid == 0 &&
356 authenticated = do_pam_non_initial_userauth(authctxt);
357 else if (authenticated && !AUTHPAM_DONE(authctxt))
361 authctxt->pam_retval = AUTHPAM_ERROR(authctxt,
366 auth_log(authctxt, authenticated, get_authname(type), info);
377 authctxt->init_failures++;
379 if (authctxt->failures++ > options.max_auth_tries) {
382 authctxt);
384 authctxt->user);
386 packet_disconnect(AUTH_FAIL_MSG, authctxt->user);
402 Authctxt *authctxt;
426 authctxt = authctxt_new();
427 authctxt->user = user;
428 authctxt->style = style;
431 fatal_add_cleanup(audit_failed_login_cleanup, authctxt);
435 if ((authctxt->pw = getpwnamallow(user)) != NULL) {
436 authctxt->valid = 1;
438 authctxt->valid = 0;
442 setproctitle("%s", authctxt->pw ? user : "unknown");
449 if (getuid() != 0 && authctxt->pw &&
450 authctxt->pw->pw_uid != getuid())
458 do_authloop(authctxt);
465 return (authctxt);