Lines Matching refs:id1

1306 	assert(req->id1.idmap_id_u.sid.prefix != NULL ||  in lookup_wksids_sid2pid()
1309 if (req->id1.idmap_id_u.sid.prefix != NULL) { in lookup_wksids_sid2pid()
1310 wksid = find_wksid_by_sid(req->id1.idmap_id_u.sid.prefix, in lookup_wksids_sid2pid()
1311 req->id1.idmap_id_u.sid.rid, res->id.idtype); in lookup_wksids_sid2pid()
1329 if (req->id1.idmap_id_u.sid.prefix == NULL) { in lookup_wksids_sid2pid()
1331 req->id1.idmap_id_u.sid.prefix = in lookup_wksids_sid2pid()
1335 req->id1.idmap_id_u.sid.prefix = in lookup_wksids_sid2pid()
1339 if (req->id1.idmap_id_u.sid.prefix == NULL) in lookup_wksids_sid2pid()
1341 req->id1.idmap_id_u.sid.rid = wksid->rid; in lookup_wksids_sid2pid()
1362 req->id1.idtype = wksid->is_wuser ? IDMAP_USID : IDMAP_GSID; in lookup_wksids_sid2pid()
1420 wksid = find_wksid_by_pid(req->id1.idmap_id_u.uid, is_user); in lookup_wksids_pid2sid()
1616 if (req->id1.idmap_id_u.sid.prefix != NULL) { in lookup_cache_sid2pid()
1626 is_user_string, req->id1.idmap_id_u.sid.prefix, in lookup_cache_sid2pid()
1627 req->id1.idmap_id_u.sid.rid, curtime); in lookup_cache_sid2pid()
1720 req->id1.idtype = strncmp(values[5], "0", 2) ? in lookup_cache_sid2pid()
1905 if (req->id1.idmap_id_u.sid.prefix != NULL && req->id1name != NULL) { in lookup_name_cache()
1910 if (req->id1.idmap_id_u.sid.prefix != NULL) { in lookup_name_cache()
1913 req->id1.idmap_id_u.sid.prefix, in lookup_name_cache()
1914 req->id1.idmap_id_u.sid.rid, &name, &domain, &type); in lookup_name_cache()
1933 req->id1.idtype = type; in lookup_name_cache()
1950 if (req->id1.idmap_id_u.sid.prefix == NULL) { in lookup_name_cache()
1951 req->id1.idmap_id_u.sid.prefix = sidprefix; in lookup_name_cache()
1952 req->id1.idmap_id_u.sid.rid = rid; in lookup_name_cache()
2045 if (IS_ID_SID(req->id1)) { in ad_lookup_batch_int()
2100 if (req->id1.idmap_id_u.sid.prefix != NULL) { in ad_lookup_batch_int()
2103 qs, req->id1.idmap_id_u.sid.prefix, in ad_lookup_batch_int()
2104 &req->id1.idmap_id_u.sid.rid, esidtype, in ad_lookup_batch_int()
2123 &req->id1.idmap_id_u.sid.prefix, in ad_lookup_batch_int()
2124 &req->id1.idmap_id_u.sid.rid, in ad_lookup_batch_int()
2132 } else if (IS_ID_UID(req->id1) || IS_ID_GID(req->id1)) { in ad_lookup_batch_int()
2184 assert(req->id1.idmap_id_u.uid != in ad_lookup_batch_int()
2186 is_user = IS_ID_UID(req->id1); in ad_lookup_batch_int()
2202 qs, req->id1.idmap_id_u.uid, is_user, in ad_lookup_batch_int()
2217 is_user = (IS_ID_UID(req->id1)) ? 1 : 0; in ad_lookup_batch_int()
2338 if (IS_ID_SID(req->id1)) { in ad_lookup_batch_int()
2366 req->id1.idtype = IDMAP_USID; in ad_lookup_batch_int()
2385 req->id1.idtype = IDMAP_GSID; in ad_lookup_batch_int()
2401 } else if (IS_ID_UID(req->id1) || IS_ID_GID(req->id1)) { in ad_lookup_batch_int()
2622 if (EMPTY_STRING(req->id1.idmap_id_u.sid.prefix)) { in sid2pid_first_pass()
2630 free(req->id1.idmap_id_u.sid.prefix); in sid2pid_first_pass()
2631 req->id1.idmap_id_u.sid.prefix = NULL; in sid2pid_first_pass()
2695 if (req->id1.idmap_id_u.sid.prefix == NULL && in sid2pid_first_pass()
2737 if (req->id1.idtype == IDMAP_USID) in sid2pid_first_pass()
2751 if (req->id1.idmap_id_u.sid.prefix != NULL && in sid2pid_first_pass()
2755 req->id1.idmap_id_u.sid.prefix, in sid2pid_first_pass()
2756 req->id1.idmap_id_u.sid.rid, in sid2pid_first_pass()
2757 &req->id1name, &req->id1domain, &req->id1.idtype); in sid2pid_first_pass()
2768 req->id1.idmap_id_u.sid.prefix == NULL) { in sid2pid_first_pass()
2774 &req->id1.idmap_id_u.sid.prefix, in sid2pid_first_pass()
2775 &req->id1.idmap_id_u.sid.rid, in sid2pid_first_pass()
2777 &req->id1.idtype); in sid2pid_first_pass()
2857 req->id1.idmap_id_u.uid + LOCALRID_UID_MIN > LOCALRID_UID_MAX) in generate_localsid()
2874 (is_user) ? req->id1.idmap_id_u.uid + LOCALRID_UID_MIN : in generate_localsid()
2875 req->id1.idmap_id_u.gid + LOCALRID_GID_MIN; in generate_localsid()
2905 if ((sidprefix = req->id1.idmap_id_u.sid.prefix) == NULL) in lookup_localsid2pid()
2908 rid = req->id1.idmap_id_u.sid.rid; in lookup_localsid2pid()
3105 switch (req->id1.idtype) { in name_based_mapping_sid2pid()
3375 sid = &state->batch->idmap_mapping_batch_val[key].id1. in get_from_sid_history()
3434 get_from_sid_history(state, req->id1.idmap_id_u.sid.prefix, in dynamic_ephemeral_mapping()
3435 req->id1.idmap_id_u.sid.rid, &next_pid)) { in dynamic_ephemeral_mapping()
3455 add_to_sid_history(state, req->id1.idmap_id_u.sid.prefix, in dynamic_ephemeral_mapping()
3456 req->id1.idmap_id_u.sid.rid); in dynamic_ephemeral_mapping()
3475 !EMPTY_STRING(req->id1.idmap_id_u.sid.prefix) && in sid2pid_second_pass()
3483 if (req->id1.idtype == IDMAP_SID) in sid2pid_second_pass()
3484 req->id1.idtype = IDMAP_USID; in sid2pid_second_pass()
3584 ((req->id1.idtype == IDMAP_USID && in sid2pid_second_pass()
3586 (req->id1.idtype == IDMAP_GSID && in sid2pid_second_pass()
3682 assert(req->id1.idmap_id_u.uid != IDMAP_SENTINEL_PID); in update_cache_pid2sid()
3699 retcode2 = ns_lookup_bypid(req->id1.idmap_id_u.uid, in update_cache_pid2sid()
3700 req->id1.idtype == IDMAP_UID, &req->id1name); in update_cache_pid2sid()
3758 req->id2domain, req->id2name, req->id1.idmap_id_u.uid, in update_cache_pid2sid()
3759 req->id1name, (req->id1.idtype == IDMAP_UID) ? 1 : 0, in update_cache_pid2sid()
3844 req->id1.idmap_id_u.sid.prefix, in update_cache_sid2pid()
3845 req->id1.idmap_id_u.sid.rid, in update_cache_sid2pid()
3906 req->id1.idmap_id_u.sid.prefix, req->id1.idmap_id_u.sid.rid, in update_cache_sid2pid()
3910 (req->id1.idtype == IDMAP_USID) ? 1 : 0, in update_cache_sid2pid()
3940 req->id1.idmap_id_u.sid.prefix, req->id1.idmap_id_u.sid.rid, in update_cache_sid2pid()
3942 req->id1.idtype, state->name_cache_timeout); in update_cache_sid2pid()
3982 if (req->id1.idmap_id_u.uid != IDMAP_SENTINEL_PID) { in lookup_cache_pid2sid()
3992 req->id1.idmap_id_u.uid, is_user, curtime); in lookup_cache_pid2sid()
4750 if (req->id1.idmap_id_u.uid == IDMAP_SENTINEL_PID) { in pid2sid_first_pass()
4756 retcode = ns_lookup_byname(req->id1name, NULL, &req->id1); in pid2sid_first_pass()
4789 if (IDMAP_ID_IS_EPHEMERAL(req->id1.idmap_id_u.uid)) { in pid2sid_first_pass()
4810 } else if (AD_MODE(req->id1.idtype, state)) { in pid2sid_first_pass()
4818 retcode = ns_lookup_bypid(req->id1.idmap_id_u.uid, in pid2sid_first_pass()
4830 } else if (NLDAP_OR_MIXED_MODE(req->id1.idtype, state)) { in pid2sid_first_pass()
4899 else if (AD_MODE(req->id1.idtype, state)) in pid2sid_second_pass()
4901 else if (NLDAP_MODE(req->id1.idtype, state)) in pid2sid_second_pass()
4903 else if (MIXED_MODE(req->id1.idtype, state)) in pid2sid_second_pass()
4920 retcode = ns_lookup_bypid(req->id1.idmap_id_u.uid, is_user, in pid2sid_second_pass()
4928 } else if (req->id1.idmap_id_u.uid == IDMAP_SENTINEL_PID) { in pid2sid_second_pass()
4930 retcode = ns_lookup_byname(req->id1name, NULL, &req->id1); in pid2sid_second_pass()