Lines Matching refs:id1

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