Lines Matching refs:pgcfg

116 	idmap_pg_config_t *pgcfg = &_idmapdstate.cfg->pgcfg;  in reload_gcs()  local
117 idmap_trustedforest_t *trustfor = pgcfg->trusted_forests; in reload_gcs()
118 int num_trustfor = pgcfg->num_trusted_forests; in reload_gcs()
121 if (pgcfg->use_ads == B_FALSE || in reload_gcs()
122 pgcfg->domain_name == NULL) { in reload_gcs()
132 if (pgcfg->global_catalog == NULL || in reload_gcs()
133 pgcfg->global_catalog[0].host[0] == '\0') { in reload_gcs()
161 for (i = 0; pgcfg->global_catalog[i].host[0] != '\0'; i++) { in reload_gcs()
163 pgcfg->global_catalog[i].host, in reload_gcs()
164 pgcfg->global_catalog[i].port) != 0) { in reload_gcs()
173 if (pgcfg->domains_in_forest != NULL) { in reload_gcs()
174 for (i = 0; pgcfg->domains_in_forest[i].domain[0] != '\0'; in reload_gcs()
177 pgcfg->domains_in_forest[i].domain, in reload_gcs()
178 pgcfg->domains_in_forest[i].sid) != 0) { in reload_gcs()
251 idmap_pg_config_t *pgcfg = &_idmapdstate.cfg->pgcfg; in reload_dcs() local
253 if (pgcfg->use_ads == B_FALSE || in reload_dcs()
254 pgcfg->domain_name == NULL) { in reload_dcs()
264 if (pgcfg->domain_controller == NULL || in reload_dcs()
265 pgcfg->domain_controller[0].host[0] == '\0') { in reload_dcs()
282 if (adutils_ad_alloc(&new_dcs[0], pgcfg->domain_name, in reload_dcs()
286 for (i = 0; pgcfg->domain_controller[i].host[0] != '\0'; i++) { in reload_dcs()
288 pgcfg->domain_controller[i].host, in reload_dcs()
289 pgcfg->domain_controller[i].port) != 0) in reload_dcs()
299 ad_disc_domainsinforest_t *dif = pgcfg->domains_in_forest; in reload_dcs()
302 if (domain_eq(pgcfg->domain_name, dif->domain)) { in reload_dcs()
337 idmap_pg_config_t *pgcfg; in print_idmapdstate() local
348 pgcfg = &_idmapdstate.cfg->pgcfg; in print_idmapdstate()
350 idmapdlog(LOG_DEBUG, "list_size_limit=%llu", pgcfg->list_size_limit); in print_idmapdstate()
351 idmapdlog(LOG_DEBUG, "max_threads=%llu", pgcfg->max_threads); in print_idmapdstate()
353 CHECK_NULL(pgcfg->default_domain)); in print_idmapdstate()
354 idmapdlog(LOG_DEBUG, "domain_name=%s", CHECK_NULL(pgcfg->domain_name)); in print_idmapdstate()
355 idmapdlog(LOG_DEBUG, "machine_sid=%s", CHECK_NULL(pgcfg->machine_sid)); in print_idmapdstate()
356 if (pgcfg->domain_controller == NULL || in print_idmapdstate()
357 pgcfg->domain_controller[0].host[0] == '\0') { in print_idmapdstate()
360 for (i = 0; pgcfg->domain_controller[i].host[0] != '\0'; i++) in print_idmapdstate()
362 pgcfg->domain_controller[i].host, in print_idmapdstate()
363 pgcfg->domain_controller[i].port); in print_idmapdstate()
365 idmapdlog(LOG_DEBUG, "forest_name=%s", CHECK_NULL(pgcfg->forest_name)); in print_idmapdstate()
366 idmapdlog(LOG_DEBUG, "site_name=%s", CHECK_NULL(pgcfg->site_name)); in print_idmapdstate()
367 if (pgcfg->global_catalog == NULL || in print_idmapdstate()
368 pgcfg->global_catalog[0].host[0] == '\0') { in print_idmapdstate()
371 for (i = 0; pgcfg->global_catalog[i].host[0] != '\0'; i++) in print_idmapdstate()
373 pgcfg->global_catalog[i].host, in print_idmapdstate()
374 pgcfg->global_catalog[i].port); in print_idmapdstate()
376 if (pgcfg->domains_in_forest == NULL || in print_idmapdstate()
377 pgcfg->domains_in_forest[0].domain[0] == '\0') { in print_idmapdstate()
379 CHECK_NULL(pgcfg->forest_name)); in print_idmapdstate()
381 for (i = 0; pgcfg->domains_in_forest[i].domain[0] != '\0'; i++) in print_idmapdstate()
383 CHECK_NULL(pgcfg->forest_name), in print_idmapdstate()
384 pgcfg->domains_in_forest[i].domain); in print_idmapdstate()
386 if (pgcfg->trusted_domains == NULL || in print_idmapdstate()
387 pgcfg->trusted_domains[0].domain[0] == '\0') { in print_idmapdstate()
390 for (i = 0; pgcfg->trusted_domains[i].domain[0] != '\0'; i++) in print_idmapdstate()
392 pgcfg->trusted_domains[i].domain); in print_idmapdstate()
395 for (i = 0; i < pgcfg->num_trusted_forests; i++) { in print_idmapdstate()
396 tf = &pgcfg->trusted_forests[i]; in print_idmapdstate()
414 enum_lookup(pgcfg->directory_based_mapping, directory_mapping_map)); in print_idmapdstate()
416 CHECK_NULL(pgcfg->ad_unixuser_attr)); in print_idmapdstate()
418 CHECK_NULL(pgcfg->ad_unixgroup_attr)); in print_idmapdstate()
420 CHECK_NULL(pgcfg->nldap_winname_attr)); in print_idmapdstate()