Lines Matching defs:res
89 struct ldb_result *res)
119 if (res != NULL) {
121 username = ldb_msg_find_attr_as_string(res->msgs[0], SYSDB_NAME, NULL);
133 ctx->groups = talloc_array(mem_ctx, uint32_t, res->count);
141 for (ctx->gnum = 0, i = 0; i < res->count; i++) {
142 ctx->groups[ctx->gnum] = ldb_msg_find_attr_as_uint(res->msgs[i],
218 struct ldb_result *res;
247 ctx->filter_value, &res);
248 if (ret == ENOENT || (ret == EOK && res->count == 0)) {
257 ret = sysdb_set_entry_attr(ctx->domain_info->sysdb, res->msgs[0]->dn,
267 name = sss_get_name_from_msg(ctx->domain_info, res->msgs[0]);
293 for (i = 0; i < res->count && !enabled; i++) {
301 res->msgs[i],
320 msg = res->msgs[i];
362 ret = sysdb_set_entry_attr(ctx->domain_info->sysdb, res->msgs[0]->dn,
394 struct ldb_result *res = NULL;
408 ret = sysdb_initgroups(sbus_req, domain, data->filter_value, &res);
409 if (ret == ENOENT || (ret == EOK && res->count == 0)) {
410 talloc_zfree(res);
418 data->filter_value, res);
432 talloc_free(res);