Lines Matching defs:state
48 struct krb5_access_state *state;
56 req = tevent_req_create(mem_ctx, &state, struct krb5_access_state);
62 state->ev = ev;
63 state->be_ctx = be_ctx;
64 state->pd = pd;
65 state->krb5_ctx = krb5_ctx;
66 state->access_allowed = false;
74 ret = krb5_setup(state, pd, dom, krb5_ctx, &state->kr);
86 attrs = talloc_array(state, const char *, 5);
99 ret = sysdb_get_user_attr(state, be_ctx->domain, state->pd->user, attrs,
115 ret = find_or_guess_upn(state, res->msgs[0], krb5_ctx, be_ctx->domain,
116 state->kr->user, pd->domain, &state->kr->upn);
122 state->kr->uid = ldb_msg_find_attr_as_uint64(res->msgs[0], SYSDB_UIDNUM,
124 if (state->kr->uid == 0) {
131 state->kr->gid = ldb_msg_find_attr_as_uint64(res->msgs[0], SYSDB_GIDNUM,
133 if (state->kr->gid == 0) {
149 subreq = handle_child_send(state, state->ev, state->kr);
165 tevent_req_post(req, state->ev);
172 struct krb5_access_state *state = tevent_req_data(req,
179 ret = handle_child_recv(subreq, state, &buf, &len);
196 state->access_allowed = true;
198 state->access_allowed = false;
211 struct krb5_access_state *state = tevent_req_data(req,
216 *access_allowed = state->access_allowed;