Lines Matching refs:id1

1230 	assert(req->id1.idmap_id_u.sid.prefix != NULL ||  in lookup_wksids_sid2pid()
1233 if (req->id1.idmap_id_u.sid.prefix != NULL) { in lookup_wksids_sid2pid()
1234 wksid = find_wksid_by_sid(req->id1.idmap_id_u.sid.prefix, in lookup_wksids_sid2pid()
1235 req->id1.idmap_id_u.sid.rid, res->id.idtype); in lookup_wksids_sid2pid()
1253 if (req->id1.idmap_id_u.sid.prefix == NULL) { in lookup_wksids_sid2pid()
1255 req->id1.idmap_id_u.sid.prefix = in lookup_wksids_sid2pid()
1259 req->id1.idmap_id_u.sid.prefix = in lookup_wksids_sid2pid()
1263 if (req->id1.idmap_id_u.sid.prefix == NULL) in lookup_wksids_sid2pid()
1265 req->id1.idmap_id_u.sid.rid = wksid->rid; in lookup_wksids_sid2pid()
1286 req->id1.idtype = wksid->is_wuser ? IDMAP_USID : IDMAP_GSID; in lookup_wksids_sid2pid()
1344 wksid = find_wksid_by_pid(req->id1.idmap_id_u.uid, is_user); in lookup_wksids_pid2sid()
1540 if (req->id1.idmap_id_u.sid.prefix != NULL) { in lookup_cache_sid2pid()
1550 is_user_string, req->id1.idmap_id_u.sid.prefix, in lookup_cache_sid2pid()
1551 req->id1.idmap_id_u.sid.rid, curtime); in lookup_cache_sid2pid()
1644 req->id1.idtype = strncmp(values[5], "0", 2) ? in lookup_cache_sid2pid()
1829 if (req->id1.idmap_id_u.sid.prefix != NULL && req->id1name != NULL) { in lookup_name_cache()
1834 if (req->id1.idmap_id_u.sid.prefix != NULL) { in lookup_name_cache()
1837 req->id1.idmap_id_u.sid.prefix, in lookup_name_cache()
1838 req->id1.idmap_id_u.sid.rid, &name, &domain, &type); in lookup_name_cache()
1857 req->id1.idtype = type; in lookup_name_cache()
1874 if (req->id1.idmap_id_u.sid.prefix == NULL) { in lookup_name_cache()
1875 req->id1.idmap_id_u.sid.prefix = sidprefix; in lookup_name_cache()
1876 req->id1.idmap_id_u.sid.rid = rid; in lookup_name_cache()
1969 if (IS_ID_SID(req->id1)) { in ad_lookup_batch_int()
2024 if (req->id1.idmap_id_u.sid.prefix != NULL) { in ad_lookup_batch_int()
2027 qs, req->id1.idmap_id_u.sid.prefix, in ad_lookup_batch_int()
2028 &req->id1.idmap_id_u.sid.rid, esidtype, in ad_lookup_batch_int()
2047 &req->id1.idmap_id_u.sid.prefix, in ad_lookup_batch_int()
2048 &req->id1.idmap_id_u.sid.rid, in ad_lookup_batch_int()
2056 } else if (IS_ID_UID(req->id1) || IS_ID_GID(req->id1)) { in ad_lookup_batch_int()
2108 assert(req->id1.idmap_id_u.uid != in ad_lookup_batch_int()
2110 is_user = IS_ID_UID(req->id1); in ad_lookup_batch_int()
2126 qs, req->id1.idmap_id_u.uid, is_user, in ad_lookup_batch_int()
2141 is_user = (IS_ID_UID(req->id1)) ? 1 : 0; in ad_lookup_batch_int()
2262 if (IS_ID_SID(req->id1)) { in ad_lookup_batch_int()
2290 req->id1.idtype = IDMAP_USID; in ad_lookup_batch_int()
2309 req->id1.idtype = IDMAP_GSID; in ad_lookup_batch_int()
2325 } else if (IS_ID_UID(req->id1) || IS_ID_GID(req->id1)) { in ad_lookup_batch_int()
2546 if (EMPTY_STRING(req->id1.idmap_id_u.sid.prefix)) { in sid2pid_first_pass()
2554 free(req->id1.idmap_id_u.sid.prefix); in sid2pid_first_pass()
2555 req->id1.idmap_id_u.sid.prefix = NULL; in sid2pid_first_pass()
2619 if (req->id1.idmap_id_u.sid.prefix == NULL && in sid2pid_first_pass()
2661 if (req->id1.idtype == IDMAP_USID) in sid2pid_first_pass()
2675 if (req->id1.idmap_id_u.sid.prefix != NULL && in sid2pid_first_pass()
2679 req->id1.idmap_id_u.sid.prefix, in sid2pid_first_pass()
2680 req->id1.idmap_id_u.sid.rid, in sid2pid_first_pass()
2681 &req->id1name, &req->id1domain, &req->id1.idtype); in sid2pid_first_pass()
2692 req->id1.idmap_id_u.sid.prefix == NULL) { in sid2pid_first_pass()
2698 &req->id1.idmap_id_u.sid.prefix, in sid2pid_first_pass()
2699 &req->id1.idmap_id_u.sid.rid, in sid2pid_first_pass()
2701 &req->id1.idtype); in sid2pid_first_pass()
2781 req->id1.idmap_id_u.uid + LOCALRID_UID_MIN > LOCALRID_UID_MAX) in generate_localsid()
2798 (is_user) ? req->id1.idmap_id_u.uid + LOCALRID_UID_MIN : in generate_localsid()
2799 req->id1.idmap_id_u.gid + LOCALRID_GID_MIN; in generate_localsid()
2829 if ((sidprefix = req->id1.idmap_id_u.sid.prefix) == NULL) in lookup_localsid2pid()
2832 rid = req->id1.idmap_id_u.sid.rid; in lookup_localsid2pid()
3029 switch (req->id1.idtype) { in name_based_mapping_sid2pid()
3293 sid = &state->batch->idmap_mapping_batch_val[key].id1. in get_from_sid_history()
3352 get_from_sid_history(state, req->id1.idmap_id_u.sid.prefix, in dynamic_ephemeral_mapping()
3353 req->id1.idmap_id_u.sid.rid, &next_pid)) { in dynamic_ephemeral_mapping()
3373 add_to_sid_history(state, req->id1.idmap_id_u.sid.prefix, in dynamic_ephemeral_mapping()
3374 req->id1.idmap_id_u.sid.rid); in dynamic_ephemeral_mapping()
3393 !EMPTY_STRING(req->id1.idmap_id_u.sid.prefix) && in sid2pid_second_pass()
3401 if (req->id1.idtype == IDMAP_SID) in sid2pid_second_pass()
3402 req->id1.idtype = IDMAP_USID; in sid2pid_second_pass()
3502 ((req->id1.idtype == IDMAP_USID && in sid2pid_second_pass()
3504 (req->id1.idtype == IDMAP_GSID && in sid2pid_second_pass()
3600 assert(req->id1.idmap_id_u.uid != IDMAP_SENTINEL_PID); in update_cache_pid2sid()
3617 retcode2 = ns_lookup_bypid(req->id1.idmap_id_u.uid, in update_cache_pid2sid()
3618 req->id1.idtype == IDMAP_UID, &req->id1name); in update_cache_pid2sid()
3676 req->id2domain, req->id2name, req->id1.idmap_id_u.uid, in update_cache_pid2sid()
3677 req->id1name, (req->id1.idtype == IDMAP_UID) ? 1 : 0, in update_cache_pid2sid()
3762 req->id1.idmap_id_u.sid.prefix, in update_cache_sid2pid()
3763 req->id1.idmap_id_u.sid.rid, in update_cache_sid2pid()
3824 req->id1.idmap_id_u.sid.prefix, req->id1.idmap_id_u.sid.rid, in update_cache_sid2pid()
3828 (req->id1.idtype == IDMAP_USID) ? 1 : 0, in update_cache_sid2pid()
3858 req->id1.idmap_id_u.sid.prefix, req->id1.idmap_id_u.sid.rid, in update_cache_sid2pid()
3860 req->id1.idtype, state->name_cache_timeout); in update_cache_sid2pid()
3900 if (req->id1.idmap_id_u.uid != IDMAP_SENTINEL_PID) { in lookup_cache_pid2sid()
3910 req->id1.idmap_id_u.uid, is_user, curtime); in lookup_cache_pid2sid()
4667 if (req->id1.idmap_id_u.uid == IDMAP_SENTINEL_PID) { in pid2sid_first_pass()
4673 retcode = ns_lookup_byname(req->id1name, NULL, &req->id1); in pid2sid_first_pass()
4706 if (IDMAP_ID_IS_EPHEMERAL(req->id1.idmap_id_u.uid)) { in pid2sid_first_pass()
4727 } else if (AD_MODE(req->id1.idtype, state)) { in pid2sid_first_pass()
4735 retcode = ns_lookup_bypid(req->id1.idmap_id_u.uid, in pid2sid_first_pass()
4747 } else if (NLDAP_OR_MIXED_MODE(req->id1.idtype, state)) { in pid2sid_first_pass()
4816 else if (AD_MODE(req->id1.idtype, state)) in pid2sid_second_pass()
4818 else if (NLDAP_MODE(req->id1.idtype, state)) in pid2sid_second_pass()
4820 else if (MIXED_MODE(req->id1.idtype, state)) in pid2sid_second_pass()
4837 retcode = ns_lookup_bypid(req->id1.idmap_id_u.uid, is_user, in pid2sid_second_pass()
4845 } else if (req->id1.idmap_id_u.uid == IDMAP_SENTINEL_PID) { in pid2sid_second_pass()
4847 retcode = ns_lookup_byname(req->id1name, NULL, &req->id1); in pid2sid_second_pass()