Lines Matching refs:res

117     struct ldb_result *res;
137 ret = ldb_search(cdb->ldb, tmp_ctx, &res,
150 if (res->count == 0) { /* add a new message */
230 struct ldb_result *res;
253 ret = ldb_search(cdb->ldb, tmp_ctx, &res,
259 if (res->count > 1) {
267 if (res->count > 0) {
268 el = ldb_msg_find_element(res->msgs[0], attribute);
822 struct ldb_result *res;
842 ret = ldb_search(cdb->ldb, tmp_ctx, &res, dn,
849 if (res->count != 1) {
871 tmp = ldb_msg_find_attr_as_string(res->msgs[0], "cn", NULL);
885 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
915 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
925 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
935 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
949 domain->timeout = ldb_msg_find_attr_as_int(res->msgs[0],
956 val = ldb_msg_find_attr_as_int(res->msgs[0], CONFDB_DOMAIN_ENUMERATE, 0);
964 ret = get_entry_as_bool(res->msgs[0], &domain->enumerate,
995 ret = get_entry_as_bool(res->msgs[0], &domain->fqnames,
1011 ret = get_entry_as_bool(res->msgs[0], &domain->ignore_group_members,
1020 ret = get_entry_as_uint32(res->msgs[0], &domain->id_min,
1029 ret = get_entry_as_uint32(res->msgs[0], &domain->id_max,
1044 ret = get_entry_as_bool(res->msgs[0], &domain->cache_credentials,
1052 ret = get_entry_as_uint32(res->msgs[0],
1063 ret = get_entry_as_bool(res->msgs[0], &domain->legacy_passwords,
1072 ret = get_entry_as_uint32(res->msgs[0], &entry_cache_timeout,
1082 ret = get_entry_as_uint32(res->msgs[0], &domain->user_timeout,
1100 ret = get_entry_as_uint32(res->msgs[0], &domain->group_timeout,
1118 ret = get_entry_as_uint32(res->msgs[0], &domain->netgroup_timeout,
1129 ret = get_entry_as_uint32(res->msgs[0], &domain->service_timeout,
1140 ret = get_entry_as_uint32(res->msgs[0], &domain->autofsmap_timeout,
1151 ret = get_entry_as_uint32(res->msgs[0], &domain->sudo_timeout,
1162 ret = get_entry_as_uint32(res->msgs[0], &domain->ssh_host_timeout,
1173 ret = get_entry_as_uint32(res->msgs[0], &domain->refresh_expired_interval,
1203 val = ldb_msg_find_attr_as_int(res->msgs[0],
1225 ret = get_entry_as_uint32(res->msgs[0], &domain->override_gid,
1233 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1243 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1253 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1264 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1274 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1284 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1294 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1324 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1337 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1350 ret = get_entry_as_uint32(res->msgs[0], &domain->subdomain_refresh_interval,
1358 ret = init_cached_auth_timeout(cdb, res->msgs[0],
1477 struct ldb_result *res = NULL;
1495 ret = ldb_search(cdb->ldb, tmp_ctx, &res, dn, LDB_SCOPE_ONELEVEL,
1502 names = talloc_zero_array(tmp_ctx, char*, res->count + 1);
1508 for (i = 0; i < res->count; i++) {
1509 name = ldb_msg_find_attr_as_string(res->msgs[i], CONFDB_DOMAIN_ATTR,
1514 ldb_dn_get_linearized(res->msgs[i]->dn));
1544 struct ldb_result *res = NULL;
1570 ret = ldb_search(cdb->ldb, tmp_ctx, &res, base, LDB_SCOPE_SUBTREE,
1577 names = talloc_zero_array(tmp_ctx, char *, res->count + 1);
1583 for (num = 0, i = 0; i < res->count; i++) {
1589 n = ldb_dn_get_comp_num(res->msgs[i]->dn);
1594 val = ldb_dn_get_component_val(res->msgs[i]->dn, j);