Lines Matching refs:tmp_ctx

118 	TALLOC_CTX *tmp_ctx;  in auth_sam_trigger_zero_password()  local
120 tmp_ctx = talloc_new(mem_ctx); in auth_sam_trigger_zero_password()
121 if (tmp_ctx == NULL) { in auth_sam_trigger_zero_password()
125 irpc_handle = irpc_binding_handle_by_name(tmp_ctx, msg_ctx, in auth_sam_trigger_zero_password()
130 TALLOC_FREE(tmp_ctx); in auth_sam_trigger_zero_password()
143 req = dcerpc_winbind_SendToSam_r_send(tmp_ctx, in auth_sam_trigger_zero_password()
150 TALLOC_FREE(tmp_ctx); in auth_sam_trigger_zero_password()
166 TALLOC_CTX *tmp_ctx; in auth_sam_trigger_repl_secret() local
168 tmp_ctx = talloc_new(mem_ctx); in auth_sam_trigger_repl_secret()
169 if (tmp_ctx == NULL) { in auth_sam_trigger_repl_secret()
173 irpc_handle = irpc_binding_handle_by_name(tmp_ctx, msg_ctx, in auth_sam_trigger_repl_secret()
178 TALLOC_FREE(tmp_ctx); in auth_sam_trigger_repl_secret()
191 req = dcerpc_drepl_trigger_repl_secret_r_send(tmp_ctx, in auth_sam_trigger_repl_secret()
198 TALLOC_FREE(tmp_ctx); in auth_sam_trigger_repl_secret()
218 TALLOC_CTX *tmp_ctx; in authsam_password_check_and_record() local
228 tmp_ctx = talloc_new(mem_ctx); in authsam_password_check_and_record()
229 if (tmp_ctx == NULL) { in authsam_password_check_and_record()
241 nt_status = samdb_result_passwords(tmp_ctx, auth_context->lp_ctx, in authsam_password_check_and_record()
244 TALLOC_FREE(tmp_ctx); in authsam_password_check_and_record()
271 TALLOC_FREE(tmp_ctx); in authsam_password_check_and_record()
276 auth_status = authsam_password_ok(auth_context, tmp_ctx, in authsam_password_check_and_record()
288 TALLOC_FREE(tmp_ctx); in authsam_password_check_and_record()
295 TALLOC_FREE(tmp_ctx); in authsam_password_check_and_record()
306 ret = dsdb_search_one(sam_ctx, tmp_ctx, &dom_msg, domain_dn, LDB_SCOPE_BASE, in authsam_password_check_and_record()
331 nt_status = samdb_result_passwords_from_history(tmp_ctx, in authsam_password_check_and_record()
379 auth_status = authsam_password_ok(auth_context, tmp_ctx, in authsam_password_check_and_record()
408 TALLOC_FREE(tmp_ctx); in authsam_password_check_and_record()
424 TALLOC_FREE(tmp_ctx); in authsam_password_check_and_record()
461 TALLOC_FREE(tmp_ctx); in authsam_password_check_and_record()
476 TALLOC_FREE(tmp_ctx); in authsam_password_check_and_record()
491 TALLOC_FREE(tmp_ctx); in authsam_password_check_and_record()
517 TALLOC_FREE(tmp_ctx); in authsam_password_check_and_record()
533 TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx); in authsam_authenticate() local
534 if (!tmp_ctx) { in authsam_authenticate()
541 TALLOC_FREE(tmp_ctx); in authsam_authenticate()
549 TALLOC_FREE(tmp_ctx); in authsam_authenticate()
555 TALLOC_FREE(tmp_ctx); in authsam_authenticate()
560 nt_status = authsam_password_check_and_record(auth_context, tmp_ctx, in authsam_authenticate()
566 TALLOC_FREE(tmp_ctx); in authsam_authenticate()
570 nt_status = authsam_account_ok(tmp_ctx, auth_context->sam_ctx, in authsam_authenticate()
578 TALLOC_FREE(tmp_ctx); in authsam_authenticate()
588 auth_sam_trigger_zero_password(tmp_ctx, in authsam_authenticate()
595 TALLOC_FREE(tmp_ctx); in authsam_authenticate()
606 TALLOC_FREE(tmp_ctx); in authsam_authenticate()
623 TALLOC_CTX *tmp_ctx; in authsam_check_password_internals() local
636 tmp_ctx = talloc_new(mem_ctx); in authsam_check_password_internals()
637 if (!tmp_ctx) { in authsam_check_password_internals()
643 talloc_free(tmp_ctx); in authsam_check_password_internals()
662 talloc_free(tmp_ctx); in authsam_check_password_internals()
673 talloc_free(tmp_ctx); in authsam_check_password_internals()
683 nt_status = authsam_search_account(tmp_ctx, ctx->auth_ctx->sam_ctx, account_name, domain_dn, &msg); in authsam_check_password_internals()
685 talloc_free(tmp_ctx); in authsam_check_password_internals()
689 …nt_status = authsam_authenticate(ctx->auth_ctx, tmp_ctx, ctx->auth_ctx->sam_ctx, domain_dn, msg, u… in authsam_check_password_internals()
692 talloc_free(tmp_ctx); in authsam_check_password_internals()
696 nt_status = authsam_make_user_info_dc(tmp_ctx, ctx->auth_ctx->sam_ctx, in authsam_check_password_internals()
705 talloc_free(tmp_ctx); in authsam_check_password_internals()
710 talloc_free(tmp_ctx); in authsam_check_password_internals()