Lines Matching refs:_idmapdstate

529 	_idmapdstate.new_eph_db = (created || upgraded) ? 1 : 0;  in init_dbs()
988 if (_idmapdstate.cfg->pgcfg.default_domain) in add_namerule()
989 dom = _idmapdstate.cfg->pgcfg.default_domain; in add_namerule()
1158 if (_idmapdstate.cfg->pgcfg.eph_map_unres_sids) in load_cfg_in_state()
1162 _idmapdstate.cfg->pgcfg.id_cache_timeout; in load_cfg_in_state()
1164 _idmapdstate.cfg->pgcfg.name_cache_timeout; in load_cfg_in_state()
1167 _idmapdstate.cfg->pgcfg.directory_based_mapping; in load_cfg_in_state()
1169 if (_idmapdstate.cfg->pgcfg.default_domain != NULL) { in load_cfg_in_state()
1171 strdup(_idmapdstate.cfg->pgcfg.default_domain); in load_cfg_in_state()
1181 if (_idmapdstate.cfg->pgcfg.directory_based_mapping != in load_cfg_in_state()
1187 if (_idmapdstate.cfg->pgcfg.nldap_winname_attr != NULL) { in load_cfg_in_state()
1189 (_idmapdstate.cfg->pgcfg.ad_unixuser_attr != NULL) in load_cfg_in_state()
1192 (_idmapdstate.cfg->pgcfg.ad_unixgroup_attr != NULL) in load_cfg_in_state()
1196 (_idmapdstate.cfg->pgcfg.ad_unixuser_attr != NULL) in load_cfg_in_state()
1199 (_idmapdstate.cfg->pgcfg.ad_unixgroup_attr != NULL) in load_cfg_in_state()
1202 if (_idmapdstate.cfg->pgcfg.ad_unixuser_attr != NULL) { in load_cfg_in_state()
1204 strdup(_idmapdstate.cfg->pgcfg.ad_unixuser_attr); in load_cfg_in_state()
1210 if (_idmapdstate.cfg->pgcfg.ad_unixgroup_attr != NULL) { in load_cfg_in_state()
1212 strdup(_idmapdstate.cfg->pgcfg.ad_unixgroup_attr); in load_cfg_in_state()
1218 if (_idmapdstate.cfg->pgcfg.nldap_winname_attr != NULL) { in load_cfg_in_state()
1220 strdup(_idmapdstate.cfg->pgcfg.nldap_winname_attr); in load_cfg_in_state()
1336 strdup(_idmapdstate.cfg->pgcfg.machine_sid); in lookup_wksids_sid2pid()
1352 dom = _idmapdstate.hostname; in lookup_wksids_sid2pid()
1435 strdup(_idmapdstate.cfg->pgcfg.machine_sid); in lookup_wksids_pid2sid()
1459 dom = _idmapdstate.hostname; in lookup_wksids_pid2sid()
1520 _idmapdstate.cfg->pgcfg.machine_sid); in lookup_wksids_name2sid()
1541 *canondomain = strdup(_idmapdstate.hostname); in lookup_wksids_name2sid()
2485 if (_idmapdstate.num_gcs == 0 && _idmapdstate.num_dcs == 0) { in ad_lookup_batch()
2500 for (i = 0; i < _idmapdstate.num_dcs && num_queries > 0; i++) { in ad_lookup_batch()
2503 result, _idmapdstate.dcs[i], in ad_lookup_batch()
2511 for (i = 0; i < _idmapdstate.num_gcs && num_queries > 0; i++) { in ad_lookup_batch()
2514 _idmapdstate.gcs[i], in ad_lookup_batch()
2745 if (_idmapdstate.cfg->pgcfg.use_lsa && in sid2pid_first_pass()
2746 _idmapdstate.cfg->pgcfg.domain_name != NULL) { in sid2pid_first_pass()
2866 strdup(_idmapdstate.cfg->pgcfg.machine_sid); in generate_localsid()
2911 s = (_idmapdstate.cfg->pgcfg.machine_sid) ? in lookup_localsid2pid()
2912 strcasecmp(sidprefix, _idmapdstate.cfg->pgcfg.machine_sid) : 1; in lookup_localsid2pid()
3296 pthread_mutex_lock(&_idmapdstate.id_lock); in get_next_eph_uid()
3297 uid = _idmapdstate.next_uid++; in get_next_eph_uid()
3298 if (uid >= _idmapdstate.limit_uid) { in get_next_eph_uid()
3300 pthread_mutex_unlock(&_idmapdstate.id_lock); in get_next_eph_uid()
3303 _idmapdstate.limit_uid = uid + 8192; in get_next_eph_uid()
3304 _idmapdstate.next_uid = uid + 1; in get_next_eph_uid()
3306 pthread_mutex_unlock(&_idmapdstate.id_lock); in get_next_eph_uid()
3321 pthread_mutex_lock(&_idmapdstate.id_lock); in get_next_eph_gid()
3322 gid = _idmapdstate.next_gid++; in get_next_eph_gid()
3323 if (gid >= _idmapdstate.limit_gid) { in get_next_eph_gid()
3325 pthread_mutex_unlock(&_idmapdstate.id_lock); in get_next_eph_gid()
3328 _idmapdstate.limit_gid = gid + 8192; in get_next_eph_gid()
3329 _idmapdstate.next_gid = gid + 1; in get_next_eph_gid()
3331 pthread_mutex_unlock(&_idmapdstate.id_lock); in get_next_eph_gid()
4283 if (_idmapdstate.num_gcs > 0) { in ad_lookup_by_winname()
4284 for (i = 0; i < _idmapdstate.num_gcs && !found_ad; i++) { in ad_lookup_by_winname()
4288 _idmapdstate.gcs[i], in ad_lookup_by_winname()
4290 _idmapdstate.cfg->pgcfg.directory_based_mapping, in ad_lookup_by_winname()
4291 _idmapdstate.cfg->pgcfg.default_domain, in ad_lookup_by_winname()
4425 if (_idmapdstate.cfg->pgcfg.use_lsa && in lookup_name2sid()
4426 _idmapdstate.cfg->pgcfg.domain_name != NULL && in lookup_name2sid()