Home
last modified time | relevance | path

Searched refs:_idmapdstate (Results 1 – 12 of 12) sorted by relevance

/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Didmapd.c72 idmapd_state_t _idmapdstate; variable
266 if (rwlock_init(&_idmapdstate.rwlk_cfg, USYNC_THREAD, NULL) != 0) in main()
268 if (mutex_init(&_idmapdstate.addisc_lk, USYNC_THREAD, NULL) != 0) in main()
270 if (cond_init(&_idmapdstate.addisc_cv, USYNC_THREAD, NULL) != 0) in main()
273 _idmapdstate.daemon_mode = TRUE; in main()
277 _idmapdstate.daemon_mode = FALSE; in main()
313 if (_idmapdstate.daemon_mode == TRUE) { in main()
342 if (_idmapdstate.daemon_mode == TRUE) in main()
372 if (sysinfo(SI_HOSTNAME, _idmapdstate.hostname, in init_idmapd()
373 sizeof (_idmapdstate.hostname)) == -1) { in init_idmapd()
[all …]
H A Dinit.c72 if ((_idmapdstate.cfg = idmap_cfg_init()) == NULL) { in load_config()
77 rc = idmap_cfg_upgrade(_idmapdstate.cfg); in load_config()
83 rc = idmap_cfg_load(_idmapdstate.cfg, 0); in load_config()
113 adutils_ad_t **old_gcs = _idmapdstate.gcs; in reload_gcs()
115 int old_num_gcs = _idmapdstate.num_gcs; in reload_gcs()
116 idmap_pg_config_t *pgcfg = &_idmapdstate.cfg->pgcfg; in reload_gcs()
227 _idmapdstate.gcs = new_gcs; in reload_gcs()
228 _idmapdstate.num_gcs = new_num_gcs; in reload_gcs()
248 adutils_ad_t **old_dcs = _idmapdstate.dcs; in reload_dcs()
250 int old_num_dcs = _idmapdstate.num_dcs; in reload_dcs()
[all …]
H A Dadspriv_impl.c122 (void) mutex_lock(&_idmapdstate.addisc_lk); in adspriv_getdcname_1_svc()
124 if (_idmapdstate.addisc_st != 0) in adspriv_getdcname_1_svc()
127 while (_idmapdstate.addisc_st != 0) { in adspriv_getdcname_1_svc()
129 rc = cond_reltimedwait(&_idmapdstate.addisc_cv, in adspriv_getdcname_1_svc()
130 &_idmapdstate.addisc_lk, &tv); in adspriv_getdcname_1_svc()
134 (void) mutex_unlock(&_idmapdstate.addisc_lk); in adspriv_getdcname_1_svc()
148 pgcfg = &_idmapdstate.cfg->pgcfg; in adspriv_getdcname_1_svc()
H A Ddirectory_provider_nsswitch.c70 int host_name_len = strlen(_idmapdstate.hostname); in directory_provider_nsswitch_get()
72 (void) strcpy(my_host_name, _idmapdstate.hostname); in directory_provider_nsswitch_get()
75 int machine_sid_len = strlen(_idmapdstate.cfg->pgcfg.machine_sid); in directory_provider_nsswitch_get()
77 (void) strcpy(my_machine_sid, _idmapdstate.cfg->pgcfg.machine_sid); in directory_provider_nsswitch_get()
324 pwd->pw_name, _idmapdstate.hostname); in directory_provider_nsswitch_populate()
349 pwd->pw_name, _idmapdstate.hostname); in directory_provider_nsswitch_populate()
387 grp->gr_name, _idmapdstate.hostname); in directory_provider_nsswitch_populate()
407 grp->gr_name, _idmapdstate.hostname); in directory_provider_nsswitch_populate()
447 int len = strlen(_idmapdstate.cfg->pgcfg.machine_sid); in machine_sid_dav()
450 _idmapdstate.cfg->pgcfg.machine_sid, rid); in machine_sid_dav()
H A Dwksids.c230 int len = strlen(_idmapdstate.hostname); in find_wksid_by_name()
232 (void) strcpy(my_host_name, _idmapdstate.hostname); in find_wksid_by_name()
293 int len = strlen(_idmapdstate.cfg->pgcfg.machine_sid); in find_wksid_by_sid()
295 (void) strcpy(my_machine_sid, _idmapdstate.cfg->pgcfg.machine_sid); in find_wksid_by_sid()
378 int len = strlen(_idmapdstate.cfg->pgcfg.machine_sid); in find_wk_by_sid()
380 (void) strcpy(my_machine_sid, _idmapdstate.cfg->pgcfg.machine_sid); in find_wk_by_sid()
H A Didmapd.h88 (_idmapdstate.debug[IDMAPD_DEBUG_##type] >= (lev) || \
89 _idmapdstate.debug[IDMAPD_DEBUG_ALL] >= (lev))
113 extern idmapd_state_t _idmapdstate;
119 (void) rw_rdlock(&_idmapdstate.rwlk_cfg);
121 (void) rw_wrlock(&_idmapdstate.rwlk_cfg);
123 (void) rw_unlock(&_idmapdstate.rwlk_cfg);
H A Ddbutils.c528 _idmapdstate.new_eph_db = (created || upgraded) ? 1 : 0; in init_dbs()
987 if (_idmapdstate.cfg->pgcfg.default_domain) in add_namerule()
988 dom = _idmapdstate.cfg->pgcfg.default_domain; in add_namerule()
1157 if (_idmapdstate.cfg->pgcfg.eph_map_unres_sids) in load_cfg_in_state()
1161 _idmapdstate.cfg->pgcfg.id_cache_timeout; in load_cfg_in_state()
1163 _idmapdstate.cfg->pgcfg.name_cache_timeout; in load_cfg_in_state()
1166 _idmapdstate.cfg->pgcfg.directory_based_mapping; in load_cfg_in_state()
1168 if (_idmapdstate.cfg->pgcfg.default_domain != NULL) { in load_cfg_in_state()
1170 strdup(_idmapdstate.cfg->pgcfg.default_domain); in load_cfg_in_state()
1180 if (_idmapdstate.cfg->pgcfg.directory_based_mapping != in load_cfg_in_state()
[all …]
H A Didmap_config.c1398 idmap_pg_config_t *pgcfg = &_idmapdstate.cfg->pgcfg; in idmap_cfg_update_thread()
1399 const ad_disc_t ad_ctx = _idmapdstate.cfg->handles.ad_ctx; in idmap_cfg_update_thread()
1411 rc = idmap_cfg_load(_idmapdstate.cfg, flags); in idmap_cfg_update_thread()
1598 if (val != _idmapdstate.debug[item]) in idmapd_set_debug()
1601 _idmapdstate.debug[item] = val; in idmapd_set_debug()
1615 adutils_set_debug(AD_DEBUG_ALL, _idmapdstate.debug[IDMAPD_DEBUG_ALL]); in check_smf_debug_mode()
1616 adutils_set_debug(AD_DEBUG_DISC, _idmapdstate.debug[IDMAPD_DEBUG_DISC]); in check_smf_debug_mode()
1617 adutils_set_debug(AD_DEBUG_DNS, _idmapdstate.debug[IDMAPD_DEBUG_DNS]); in check_smf_debug_mode()
1618 adutils_set_debug(AD_DEBUG_LDAP, _idmapdstate.debug[IDMAPD_DEBUG_LDAP]); in check_smf_debug_mode()
2328 (void) mutex_lock(&_idmapdstate.addisc_lk); in idmap_cfg_load()
[all …]
H A Ddirectory_provider_builtin.c211 wksid->winname, container, _idmapdstate.hostname); in directory_provider_builtin_populate()
242 wksid->winname, _idmapdstate.hostname); in directory_provider_builtin_populate()
288 _idmapdstate.cfg->pgcfg.machine_sid, in sid_dav()
H A Ddirectory_provider_ad.c150 if (_idmapdstate.num_gcs < 1) { in directory_provider_ad_get()
157 int len = strlen(_idmapdstate.cfg->pgcfg.default_domain); in directory_provider_ad_get()
159 (void) strcpy(default_domain, _idmapdstate.cfg->pgcfg.default_domain); in directory_provider_ad_get()
299 ad = _idmapdstate.gcs[0]; in directory_provider_ad_lookup()
H A Dkrb5_lookup.c89 pgcfg = &_idmapdstate.cfg->pgcfg; in _krb5_override_service_locator()
H A Dserver.c681 maxlimit = _idmapdstate.cfg->pgcfg.list_size_limit; in idmap_list_mappings_1_svc()
830 maxlimit = _idmapdstate.cfg->pgcfg.list_size_limit; in idmap_list_namerules_1_svc()
1226 pgcfg = &_idmapdstate.cfg->pgcfg; in idmap_get_prop_1_svc()