Lines Matching defs:ctx
95 struct ad_options *ctx = talloc_get_type(pvt, struct ad_options);
96 struct sdap_id_ctx *sdap_ctx = ctx->id_ctx->sdap_id_ctx;
99 req = sdap_dyndns_timer_conn_send(ctx, sdap_ctx->be->ev, sdap_ctx,
100 ctx->dyndns_ctx);
104 be_nsupdate_timer_schedule(sdap_ctx->be->ev, ctx->dyndns_ctx);
107 tevent_req_set_callback(req, ad_dyndns_timer_connected, ctx);
113 struct ad_options *ctx = tevent_req_callback_data(req, struct ad_options);
123 return ad_dyndns_update(ctx);
126 static struct tevent_req *ad_dyndns_update_send(struct ad_options *ctx);
132 struct ad_options *ctx = talloc_get_type(pvt, struct ad_options);
133 struct sdap_id_ctx *sdap_ctx = ctx->id_ctx->sdap_id_ctx;
137 be_nsupdate_timer_schedule(sdap_ctx->be->ev, ctx->dyndns_ctx);
139 req = ad_dyndns_update_send(ctx);
167 ad_dyndns_update_send(struct ad_options *ctx)
172 struct sdap_id_ctx *sdap_ctx = ctx->id_ctx->sdap_id_ctx;
177 req = tevent_req_create(ctx, &state, struct ad_dyndns_update_state);
181 state->ad_ctx = ctx;
183 if (ctx->dyndns_ctx->last_refresh + 60 > time(NULL) ||
184 ctx->dyndns_ctx->timer_in_progress) {
193 ret = ldap_url_parse(ctx->service->sdap->uri, &lud);
196 "Failed to parse ldap URI (%s)!\n", ctx->service->sdap->uri);
213 ctx->service->sdap->uri);
221 ctx->dyndns_ctx->opts,
223 ctx->dyndns_ctx->auth_type,
224 dp_opt_get_string(ctx->dyndns_ctx->opts,
226 dp_opt_get_string(ctx->basic,
228 dp_opt_get_string(ctx->basic,
230 dp_opt_get_int(ctx->dyndns_ctx->opts,