Lines Matching refs:subreq

44 static void get_password_migration_flag_auth_done(struct tevent_req *subreq);
45 static void get_password_migration_flag_done(struct tevent_req *subreq);
53 struct tevent_req *req, *subreq;
81 subreq = sdap_id_op_connect_send(state->sdap_op, state, &ret);
82 if (!subreq) {
88 tevent_req_set_callback(subreq, get_password_migration_flag_auth_done, req);
97 static void get_password_migration_flag_auth_done(struct tevent_req *subreq)
99 struct tevent_req *req = tevent_req_callback_data(subreq,
105 ret = sdap_id_op_connect_recv(subreq, &dp_error);
106 talloc_zfree(subreq);
122 subreq = ipa_get_config_send(state, state->ev,
126 tevent_req_set_callback(subreq, get_password_migration_flag_done, req);
129 static void get_password_migration_flag_done(struct tevent_req *subreq)
131 struct tevent_req *req = tevent_req_callback_data(subreq,
139 ret = ipa_get_config_recv(subreq, state, &reply);
140 talloc_zfree(subreq);
178 static void ipa_pam_auth_handler_krb5_done(struct tevent_req *subreq);
179 static void ipa_pam_auth_handler_flag_done(struct tevent_req *subreq);
180 static void ipa_pam_auth_handler_connect_done(struct tevent_req *subreq);
181 static void ipa_pam_auth_handler_auth_done(struct tevent_req *subreq);
182 static void ipa_pam_auth_handler_retry_done(struct tevent_req *subreq);
191 struct tevent_req *subreq;
216 subreq = krb5_auth_queue_send(state, params->ev, params->be_ctx,
218 if (subreq == NULL) {
223 tevent_req_set_callback(subreq, ipa_pam_auth_handler_krb5_done, req);
235 static void ipa_pam_auth_handler_krb5_done(struct tevent_req *subreq)
243 req = tevent_req_callback_data(subreq, struct tevent_req);
247 ret = krb5_auth_queue_recv(subreq, &state->pd->pam_status, &dp_err);
248 talloc_free(subreq);
263 subreq = get_password_migration_flag_send(state, state->ev,
266 if (subreq == NULL) {
270 tevent_req_set_callback(subreq, ipa_pam_auth_handler_flag_done, req);
279 static void ipa_pam_auth_handler_flag_done(struct tevent_req *subreq)
287 req = tevent_req_callback_data(subreq, struct tevent_req);
290 ret = get_password_migration_flag_recv(subreq, &password_migration);
291 talloc_free(subreq);
301 subreq = sdap_cli_connect_send(state, state->ev,
306 if (subreq == NULL) {
311 tevent_req_set_callback(subreq, ipa_pam_auth_handler_connect_done, req);
320 static void ipa_pam_auth_handler_connect_done(struct tevent_req *subreq)
331 req = tevent_req_callback_data(subreq, struct tevent_req);
336 ret = sdap_cli_connect_recv(subreq, state, NULL, &sh, NULL);
337 talloc_free(subreq);
364 subreq = sdap_auth_send(state, state->ev, sh, NULL, NULL, dn,
366 if (subreq == NULL) {
370 tevent_req_set_callback(subreq, ipa_pam_auth_handler_auth_done, req);
378 static void ipa_pam_auth_handler_auth_done(struct tevent_req *subreq)
384 req = tevent_req_callback_data(subreq, struct tevent_req);
387 ret = sdap_auth_recv(subreq, state, NULL);
389 talloc_free(subreq);
410 subreq = krb5_auth_queue_send(state, state->ev, state->be_ctx, state->pd,
412 if (subreq == NULL) {
416 tevent_req_set_callback(subreq, ipa_pam_auth_handler_retry_done, req);
424 static void ipa_pam_auth_handler_retry_done(struct tevent_req *subreq)
431 req = tevent_req_callback_data(subreq, struct tevent_req);
434 ret = krb5_auth_queue_recv(subreq, &state->pd->pam_status, &dp_err);
435 talloc_free(subreq);