Lines Matching refs:state

59     struct sdap_ad_match_rule_state *state;
63 req = tevent_req_create(mem_ctx, &state, struct sdap_ad_match_rule_state);
66 state->ev = ev;
67 state->opts = opts;
68 state->sh = sh;
69 state->timeout = timeout;
70 state->count = 0;
71 state->base_iter = 0;
72 state->search_bases = opts->sdom->user_search_bases;
75 ret = build_attrs_from_map(state, opts->user_map, opts->user_map_cnt,
76 NULL, &state->attrs, NULL);
94 ret = sss_filter_sanitize(state, group_dn, &sanitized_group_dn);
105 state->base_filter =
106 talloc_asprintf(state,
108 state->opts->user_map[SDAP_AT_USER_MEMBEROF].name,
111 state->opts->user_map[SDAP_OC_USER].name);
113 if (!state->base_filter) {
139 struct sdap_ad_match_rule_state *state;
141 state = tevent_req_data(req, struct sdap_ad_match_rule_state);
143 talloc_zfree(state->filter);
144 state->filter = sdap_combine_filters(state, state->base_filter,
145 state->search_bases[state->base_iter]->filter);
146 if (!state->filter) {
152 state->search_bases[state->base_iter]->basedn);
155 state, state->ev, state->opts, state->sh,
156 state->search_bases[state->base_iter]->basedn,
157 state->search_bases[state->base_iter]->scope,
158 state->filter, state->attrs,
159 state->opts->user_map, state->opts->user_map_cnt,
160 state->timeout, true);
176 struct sdap_ad_match_rule_state *state =
181 ret = sdap_get_generic_recv(subreq, state, &count, &users);
195 state->users = talloc_realloc(state, state->users,
197 state->count + count + 1);
198 if (!state->users) {
205 state->users[state->count + i] =
206 talloc_steal(state->users, users[i]);
209 state->count += count;
210 state->users[state->count] = NULL;
214 state->base_iter++;
215 if (state->search_bases[state->base_iter]) {
225 if (state->count == 0) {
241 struct sdap_ad_match_rule_state *state =
246 *num_users = state->count;
247 *users = talloc_steal(mem_ctx, state->users);