/sssd/src/tests/cmocka/ |
H A D | common_mock_resp.c | 7 SSSD tests: Common utilities for tests that exercise domains 30 struct sss_domain_info *domains, 52 rctx->domains = domains; 28 mock_rctx(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct sss_domain_info *domains, void *pvt_ctx) argument
|
H A D | test_ad_subdomains.c | 128 const char *domains[domain_count]; local 151 domains[0] = AD_DOMAIN; 152 domains[1] = DOMAIN_1; 153 assert_true(are_values_in_array(domains, domain_count, 166 const char *domains[domain_count]; local 189 domains[0] = AD_DOMAIN; 190 domains[1] = DOMAIN_1; 191 domains[2] = DOMAIN_2; 192 assert_true(are_values_in_array(domains, domain_count, 205 const char *domains[domain_coun local 242 const char *domains[domain_count]; local [all...] |
H A D | test_responder_common.c | 145 struct sss_domain_info *domains, 150 struct sss_domain_info *domains, 158 return __real_sss_parse_name_for_domains(memctx, domains, 213 /* The second one will succeed as the domains are up-to-date */ 235 * as the domains are up-to-date */ 149 __wrap_sss_parse_name_for_domains(TALLOC_CTX *memctx, struct sss_domain_info *domains, const char *default_domain, const char *orig, char **domain, char **name) argument
|
H A D | test_sysdb_subdomains.c | 52 const char *domains[] = { TEST_DOM1_NAME, variable 76 TEST_CONF_DB, domains, 89 test_multidom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, domains);
|
H A D | test_ad_common.c | 71 const char *domains[] = { TEST_DOM1_NAME, variable 94 TEST_CONF_DB, domains, 107 test_multidom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, domains);
|
H A D | test_sysdb_ts_cache.c | 71 const char *domains[] = { TEST_DOM1_NAME, variable 90 TEST_CONF_DB, domains, 1488 test_multidom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, domains); 1493 test_multidom_suite_cleanup(TESTS_PATH, TEST_CONF_DB, domains);
|
/sssd/src/tools/common/ |
H A D | sss_tools.h | 34 struct sss_domain_info *domains; member in struct:sss_tool_ctx
|
H A D | sss_tools.c | 127 struct sss_domain_info *domains; local 131 ret = confdb_get_domains(confdb, &domains); 133 DEBUG(SSSDBG_CRIT_FAILURE, "Unable to setup domains [%d]: %s\n", 138 ret = sysdb_init(mem_ctx, domains); 145 for (dom = domains; dom != NULL; 166 for (dom = domains; dom != NULL; 175 *_domains = domains; 283 /* Setup domains. */ 284 ret = sss_tool_domains_init(tool_ctx, tool_ctx->confdb, &tool_ctx->domains); 286 DEBUG(SSSDBG_CRIT_FAILURE, "Unable to setup domains [ [all...] |
/sssd/src/lib/sifp/ |
H A D | sss_sifp_common.c | 89 char **domains = NULL; local 105 /* calculate number of paths acquired and allocate memory for domains */ 108 domains = _alloc_zero(ctx, char *, size + 1); 109 if (domains == NULL) { 127 domains[i] = sss_sifp_strdup(ctx, name); 128 if (domains[i] == NULL) { 136 domains[i] = NULL; 138 *_domains = domains; 147 sss_sifp_free_string_array(ctx, &domains);
|
/sssd/src/responder/ifp/ |
H A D | ifp_cache.c | 153 struct sss_domain_info *domains, 171 domain = domains; 227 ret = ifp_cache_list_domains(sbus_req, ifp_ctx->rctx->domains, type, 259 domain = find_domain_by_name(ifp_ctx->rctx->domains, domainname, true); 152 ifp_cache_list_domains(TALLOC_CTX *mem_ctx, struct sss_domain_info *domains, enum ifp_cache_type type, const char ***_paths, int *_num_paths) argument
|
H A D | ifp_domains.c | 106 ret = sysdb_master_domain_update(ireq->ifp_ctx->rctx->domains); 115 for (dom = ireq->ifp_ctx->rctx->domains; 128 for (dom = ireq->ifp_ctx->rctx->domains; 216 ret = sysdb_master_domain_update(ireq->ifp_ctx->rctx->domains); 225 for (iter = ireq->ifp_ctx->rctx->domains; 258 struct sss_domain_info *domains = NULL; local 276 domains = ctx->rctx->domains; 277 for (iter = domains; iter != NULL;
|
H A D | ifp_groups.c | 49 static errno_t ifp_groups_decompose_path(struct sss_domain_info *domains, argument 64 domain = find_domain_by_name(domains, parts[0], false); 433 ret = ifp_groups_decompose_path(ctx->rctx->domains, sbus_req->path,
|
H A D | ifp_users.c | 51 static errno_t ifp_users_decompose_path(struct sss_domain_info *domains, argument 66 domain = find_domain_by_name(domains, parts[0], false); 522 ret = ifp_users_decompose_path(ifp_ctx->rctx->domains, sbus_req->path,
|
/sssd/src/tests/ |
H A D | common_dom.c | 7 SSSD tests: Common utilities for tests that exercise domains 27 /* Including private header makes sure we can initialize test domains. */ 95 ret = confdb_get_string(cdb, tmp_ctx, "config/sssd", "domains", 116 /* add domain to the list of enabled domains */ 130 ret = confdb_add_param(cdb, true, "config/sssd", "domains", val); 232 const char **domains, 255 /* create confdb objects for the domains */ 256 for (i = 0; domains[i] != NULL; i++) { 258 domains[i], id_provider, params, 267 /* initialize domain list and sysdb of the domains */ 229 create_multidom_test_ctx(TALLOC_CTX *mem_ctx, const char *tests_path, const char *cdb_file, const char **domains, const char *id_provider, struct sss_test_conf_param *params) argument 302 const char *domains[] = {domain_name, NULL}; local 308 test_multidom_suite_cleanup(const char *tests_path, const char *cdb_file, const char **domains) argument 404 const char *domains[] = {domain, NULL}; local [all...] |
/sssd/src/sss_client/libwbclient/ |
H A D | wbc_util_sssd.c | 139 wbcErr wbcListTrusts(struct wbcDomainInfo **domains, size_t *num_domains) argument
|
/sssd/src/tools/sssctl/ |
H A D | sssctl_domains.c | 36 char **domains; local 63 error = sss_sifp_list_domains(sifp, &domains); 65 sssctl_sifp_error(sifp, error, "Unable to get domains list"); 69 for (i = 0; domains[i] != NULL; i++) { 70 puts(domains[i]);
|
H A D | sssctl_cache.c | 338 struct sss_domain_info *domains, 362 dom = domain == NULL ? domains : domain; 417 struct sss_domain_info *domains, 453 ret = sssctl_find_object(tmp_ctx, domains, domain, basedn_fn, 472 struct sss_domain_info *domains, 493 ret = sssctl_fetch_object(tmp_ctx, info, domains, domain, basedn_fn, 608 ret = sssctl_print_object(info, tool_ctx->domains, opts.domain, 654 ret = sssctl_print_object(info, tool_ctx->domains, opts.domain, 685 ret = sssctl_print_object(info, tool_ctx->domains, opts.domain, 337 sssctl_find_object(TALLOC_CTX *mem_ctx, struct sss_domain_info *domains, struct sss_domain_info *domain, sssctl_basedn_fn basedn_fn, enum cache_object obj_type, const char *attr_name, const char *attr_value, const char **attrs, struct sysdb_attrs **_entry, struct sss_domain_info **_dom) argument 415 sssctl_fetch_object(TALLOC_CTX *mem_ctx, struct sssctl_object_info *info, struct sss_domain_info *domains, struct sss_domain_info *domain, sssctl_basedn_fn basedn_fn, enum cache_object obj_type, const char *attr_name, const char *attr_value, struct sysdb_attrs **_entry, struct sss_domain_info **_dom) argument 471 sssctl_print_object(struct sssctl_object_info *info, struct sss_domain_info *domains, struct sss_domain_info *domain, sssctl_basedn_fn basedn_fn, const char *noent_fmt, enum cache_object obj_type, const char *attr_name, const char *attr_value) argument
|
/sssd/src/providers/ |
H A D | fail_over_srv.c | 205 const char **domains = NULL; local 261 domains = talloc_zero_array(state, const char *, 3); 262 if (domains == NULL) { 267 domains[0] = state->primary_domain; 268 domains[1] = state->backup_domain; 271 state->service, state->protocol, domains); 292 const char **domains = NULL; local 334 domains = talloc_zero_array(state, const char *, 2); 335 if (domains == NULL) { 340 domains[ 600 const char **domains = NULL; local [all...] |
/sssd/src/db/ |
H A D | sysdb_init.c | 920 struct sss_domain_info *domains) 922 return sysdb_init_ext(mem_ctx, domains, NULL, false, 0, 0); 926 struct sss_domain_info *domains, 940 ret = sysdb_check_upgrade_02(domains, DB_PATH); 952 for (dom = domains; dom; dom = dom->next) { 919 sysdb_init(TALLOC_CTX *mem_ctx, struct sss_domain_info *domains) argument 925 sysdb_init_ext(TALLOC_CTX *mem_ctx, struct sss_domain_info *domains, struct sysdb_upgrade_ctx *upgrade_ctx, bool chown_dbfile, uid_t uid, gid_t gid) argument
|
/sssd/src/confdb/ |
H A D | confdb.c | 750 /* The default UID/GID for domains is 1. This wouldn't work well with 1380 struct sss_domain_info **domains) 1388 *domains = cdb->doms; 1400 DEBUG(SSSDBG_FATAL_FAILURE, "No domains configured, fatal error!\n"); 1404 DEBUG(SSSDBG_FATAL_FAILURE, "Fatal error retrieving domains list!\n"); 1436 "No properly configured domains, fatal error!\n"); 1441 *domains = cdb->doms; 1379 confdb_get_domains(struct confdb_ctx *cdb, struct sss_domain_info **domains) argument
|
/sssd/src/providers/ad/ |
H A D | ad_srv.c | 127 const char **domains = NULL; local 137 domains = talloc_zero_array(state, const char *, 3); 138 if (domains == NULL) { 147 domains[0] = talloc_strdup(domains, discovery_domain); 148 if (domains[0] == NULL) { 156 domains[0] = talloc_asprintf(state, AD_SITE_DOMAIN_FMT, 158 if (domains[0] == NULL) { 163 domains[1] = talloc_strdup(domains, discovery_domai [all...] |
/sssd/src/responder/common/ |
H A D | responder.h | 106 struct sss_domain_info *domains; member in struct:resp_ctx
|
/sssd/src/responder/nss/ |
H A D | nsssrv_services.c | 39 struct sss_domain_info **domains; member in struct:getserv_ctx 61 * present and expired, add it to a list of domains eligible to 66 * been determined to be available, search all domains in order 100 for (dom = cctx->rctx->domains; dom; dom = get_next_domain(dom, 0)) { 104 /* Create an array of domains to check. To save resizes, we'll 107 state->domains = talloc_zero_array(state, 110 if (!state->domains) { 119 * lowercase in multiple domains. 142 * lowercase in multiple domains. 158 dom = cctx->rctx->domains; 875 parse_getservbyname(TALLOC_CTX *mem_ctx, uint8_t *body, size_t blen, struct sss_domain_info *domains, char *default_domain, char **domain_name, char **service_name, char **service_protocol) argument [all...] |
/sssd/src/tools/ |
H A D | sss_cache.c | 94 struct sss_domain_info *domains; member in struct:cache_tool_ctx 153 for (dinfo = tctx->domains; dinfo; 346 * domains regex to parse string into domain and name (if exists). */ 610 domain, DB_PATH, &ctx->domains); 619 ret = confdb_get_domains(ctx->confdb, &ctx->domains); 621 DEBUG(SSSDBG_CRIT_FAILURE, "Could not initialize domains\n"); 625 ret = sysdb_init(ctx, ctx->domains); 634 for (dinfo = ctx->domains; dinfo; dinfo = get_next_domain(dinfo, 0)) { 844 ERROR("Could not open available domains\n");
|
/sssd/src/util/ |
H A D | usertools.c | 381 struct sss_domain_info *domains, 402 for (dom = domains; dom != NULL; dom = get_next_domain(dom, 0)) { 460 for (dom = domains; dom != NULL; dom = get_next_domain(dom, 0)) { 380 sss_parse_name_for_domains(TALLOC_CTX *memctx, struct sss_domain_info *domains, const char *default_domain, const char *orig, char **domain, char **name) argument
|