Home
last modified time | relevance | path

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

/titanic_50/usr/src/cmd/idmap/idmapd/
H A Didmapd.c71 idmapd_state_t _idmapdstate; variable
261 if (rwlock_init(&_idmapdstate.rwlk_cfg, USYNC_THREAD, NULL) != 0) in main()
263 if (mutex_init(&_idmapdstate.addisc_lk, USYNC_THREAD, NULL) != 0) in main()
265 if (cond_init(&_idmapdstate.addisc_cv, USYNC_THREAD, NULL) != 0) in main()
268 _idmapdstate.daemon_mode = TRUE; in main()
272 _idmapdstate.daemon_mode = FALSE; in main()
310 if (_idmapdstate.daemon_mode == TRUE) { in main()
339 if (_idmapdstate.daemon_mode == TRUE) in main()
369 if (sysinfo(SI_HOSTNAME, _idmapdstate.hostname, in init_idmapd()
370 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()
249 adutils_ad_t **old_dcs = _idmapdstate.dcs; in reload_dcs()
251 int old_num_dcs = _idmapdstate.num_dcs; in reload_dcs()
[all …]
H A Dadspriv_impl.c121 (void) mutex_lock(&_idmapdstate.addisc_lk); in adspriv_getdcname_1_svc()
123 if (_idmapdstate.addisc_st != 0) in adspriv_getdcname_1_svc()
126 while (_idmapdstate.addisc_st != 0) { in adspriv_getdcname_1_svc()
128 rc = cond_reltimedwait(&_idmapdstate.addisc_cv, in adspriv_getdcname_1_svc()
129 &_idmapdstate.addisc_lk, &tv); in adspriv_getdcname_1_svc()
133 (void) mutex_unlock(&_idmapdstate.addisc_lk); in adspriv_getdcname_1_svc()
147 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.h87 (_idmapdstate.debug[IDMAPD_DEBUG_##type] >= (lev) || \
88 _idmapdstate.debug[IDMAPD_DEBUG_ALL] >= (lev))
112 extern idmapd_state_t _idmapdstate;
118 (void) rw_rdlock(&_idmapdstate.rwlk_cfg);
120 (void) rw_wrlock(&_idmapdstate.rwlk_cfg);
122 (void) rw_unlock(&_idmapdstate.rwlk_cfg);
H A Ddbutils.c471 _idmapdstate.new_eph_db = (created || upgraded) ? 1 : 0; in init_dbs()
912 if (_idmapdstate.cfg->pgcfg.default_domain) in add_namerule()
913 dom = _idmapdstate.cfg->pgcfg.default_domain; in add_namerule()
1082 if (_idmapdstate.cfg->pgcfg.eph_map_unres_sids) in load_cfg_in_state()
1086 _idmapdstate.cfg->pgcfg.id_cache_timeout; in load_cfg_in_state()
1088 _idmapdstate.cfg->pgcfg.name_cache_timeout; in load_cfg_in_state()
1091 _idmapdstate.cfg->pgcfg.directory_based_mapping; in load_cfg_in_state()
1093 if (_idmapdstate.cfg->pgcfg.default_domain != NULL) { in load_cfg_in_state()
1095 strdup(_idmapdstate.cfg->pgcfg.default_domain); in load_cfg_in_state()
1105 if (_idmapdstate.cfg->pgcfg.directory_based_mapping != in load_cfg_in_state()
[all …]
H A Didmap_config.c1329 idmap_pg_config_t *pgcfg = &_idmapdstate.cfg->pgcfg; in idmap_cfg_update_thread()
1330 const ad_disc_t ad_ctx = _idmapdstate.cfg->handles.ad_ctx; in idmap_cfg_update_thread()
1341 rc = idmap_cfg_load(_idmapdstate.cfg, flags); in idmap_cfg_update_thread()
1507 if (val != _idmapdstate.debug[item]) in idmapd_set_debug()
1510 _idmapdstate.debug[item] = val; in idmapd_set_debug()
1524 adutils_set_debug(AD_DEBUG_ALL, _idmapdstate.debug[IDMAPD_DEBUG_ALL]); in check_smf_debug_mode()
1525 adutils_set_debug(AD_DEBUG_DISC, _idmapdstate.debug[IDMAPD_DEBUG_DISC]); in check_smf_debug_mode()
1526 adutils_set_debug(AD_DEBUG_DNS, _idmapdstate.debug[IDMAPD_DEBUG_DNS]); in check_smf_debug_mode()
1527 adutils_set_debug(AD_DEBUG_LDAP, _idmapdstate.debug[IDMAPD_DEBUG_LDAP]); in check_smf_debug_mode()
2181 (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.c87 pgcfg = &_idmapdstate.cfg->pgcfg; in _krb5_override_service_locator()
H A Dserver.c672 maxlimit = _idmapdstate.cfg->pgcfg.list_size_limit; in idmap_list_mappings_1_svc()
819 maxlimit = _idmapdstate.cfg->pgcfg.list_size_limit; in idmap_list_namerules_1_svc()
1209 pgcfg = &_idmapdstate.cfg->pgcfg; in idmap_get_prop_1_svc()