Home
last modified time | relevance | path

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

/titanic_41/usr/src/cmd/idmap/idmapd/
H A Didmapd.c64 idmapd_state_t _idmapdstate; variable
253 _idmapdstate.daemon_mode = TRUE; in main()
257 _idmapdstate.daemon_mode = FALSE; in main()
295 if (_idmapdstate.daemon_mode == TRUE) { in main()
323 if (_idmapdstate.daemon_mode == TRUE) in main()
352 if (sysinfo(SI_HOSTNAME, _idmapdstate.hostname, in init_idmapd()
353 sizeof (_idmapdstate.hostname)) == -1) { in init_idmapd()
396 if ((error = allocids(_idmapdstate.new_eph_db, in init_idmapd()
397 8192, &_idmapdstate.next_uid, in init_idmapd()
398 8192, &_idmapdstate.next_gid)) != 0) { in init_idmapd()
[all …]
H A Dinit.c47 if (rwlock_init(&_idmapdstate.rwlk_cfg, USYNC_THREAD, NULL) != 0) in init_mapping_system()
74 if ((_idmapdstate.cfg = idmap_cfg_init()) == NULL) { in load_config()
79 rc = idmap_cfg_upgrade(_idmapdstate.cfg); in load_config()
85 rc = idmap_cfg_load(_idmapdstate.cfg, 0); in load_config()
115 adutils_ad_t **old_gcs = _idmapdstate.gcs; in reload_gcs()
117 int old_num_gcs = _idmapdstate.num_gcs; in reload_gcs()
118 idmap_pg_config_t *pgcfg = &_idmapdstate.cfg->pgcfg; in reload_gcs()
229 _idmapdstate.gcs = new_gcs; in reload_gcs()
230 _idmapdstate.num_gcs = new_num_gcs; in reload_gcs()
251 adutils_ad_t **old_dcs = _idmapdstate.dcs; in reload_dcs()
[all …]
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))
109 extern idmapd_state_t _idmapdstate;
112 (void) rw_rdlock(&_idmapdstate.rwlk_cfg);
114 (void) rw_wrlock(&_idmapdstate.rwlk_cfg);
116 (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 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.c148 if (_idmapdstate.num_gcs < 1) { in directory_provider_ad_get()
155 int len = strlen(_idmapdstate.cfg->pgcfg.default_domain); in directory_provider_ad_get()
157 (void) strcpy(default_domain, _idmapdstate.cfg->pgcfg.default_domain); in directory_provider_ad_get()
297 ad = _idmapdstate.gcs[0]; in directory_provider_ad_lookup()
H A Didmap_config.c1247 const ad_disc_t ad_ctx = _idmapdstate.cfg->handles.ad_ctx; in idmap_cfg_update_thread()
1257 rc = idmap_cfg_load(_idmapdstate.cfg, CFG_DISCOVER); in idmap_cfg_update_thread()
1398 if (val != _idmapdstate.debug[item]) in idmapd_set_debug()
1401 _idmapdstate.debug[item] = val; in idmapd_set_debug()
1415 adutils_set_debug(AD_DEBUG_ALL, _idmapdstate.debug[IDMAPD_DEBUG_ALL]); in check_smf_debug_mode()
1416 adutils_set_debug(AD_DEBUG_DISC, _idmapdstate.debug[IDMAPD_DEBUG_DISC]); in check_smf_debug_mode()
1417 adutils_set_debug(AD_DEBUG_DNS, _idmapdstate.debug[IDMAPD_DEBUG_DNS]); in check_smf_debug_mode()
1418 adutils_set_debug(AD_DEBUG_LDAP, _idmapdstate.debug[IDMAPD_DEBUG_LDAP]); in check_smf_debug_mode()
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()