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
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()
373 sizeof (_idmapdstate.hostname)) == -1) { in init_idmapd()
424 8192, &_idmapdstate.next_uid, in init_idmapd()
425 8192, &_idmapdstate.next_gid)) != 0) { in init_idmapd()
428 _idmapdstate.next_uid = IDMAP_SENTINEL_PID; in init_idmapd()
433 _idmapdstate.limit_uid = _idmapdstate.next_uid + 8192; in init_idmapd()
[all …]
H A Dinit.c77 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()
227 _idmapdstate.gcs = new_gcs; in reload_gcs()
228 _idmapdstate.num_gcs = new_num_gcs; in reload_gcs()
250 int old_num_dcs = _idmapdstate.num_dcs; in reload_dcs()
312 _idmapdstate.dcs = new_dcs; in reload_dcs()
313 _idmapdstate.num_dcs = new_num_dcs; in reload_dcs()
342 if (_idmapdstate.cfg == NULL) { in print_idmapdstate()
[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.c1351 dom = _idmapdstate.hostname; in lookup_wksids_sid2pid()
1458 dom = _idmapdstate.hostname; in lookup_wksids_pid2sid()
2484 if (_idmapdstate.num_gcs == 0 && _idmapdstate.num_dcs == 0) { in ad_lookup_batch()
2502 result, _idmapdstate.dcs[i], in ad_lookup_batch()
2513 _idmapdstate.gcs[i], in ad_lookup_batch()
3295 uid = _idmapdstate.next_uid++; in get_next_eph_uid()
3301 _idmapdstate.next_uid = uid; in get_next_eph_uid()
3317 gid = _idmapdstate.next_gid++; in get_next_eph_gid()
3323 _idmapdstate.next_gid = gid; in get_next_eph_gid()
4276 if (_idmapdstate.num_gcs > 0) { in ad_lookup_by_winname()
[all …]
H A Didmap_config.c1411 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()
2328 (void) mutex_lock(&_idmapdstate.addisc_lk); in idmap_cfg_load()
2329 _idmapdstate.addisc_st |= ADDISC_ST_RUNNING; in idmap_cfg_load()
2335 (void) mutex_lock(&_idmapdstate.addisc_lk); in idmap_cfg_load()
2336 _idmapdstate.addisc_st = 0; in idmap_cfg_load()
2700 (void) mutex_lock(&_idmapdstate.addisc_lk); in idmap_cfg_poke_updates()
2701 prev_st = _idmapdstate.addisc_st; in idmap_cfg_poke_updates()
2722 (void) mutex_lock(&_idmapdstate.addisc_lk); in idmap_cfg_force_rediscovery()
[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()