Lines Matching defs:sid

37 #include <sys/sid.h>
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;
1351 res->id.idmap_id_u.sid.rid = wksid->rid;
1354 res->id.idmap_id_u.sid.prefix =
1358 res->id.idmap_id_u.sid.prefix =
1363 if (res->id.idmap_id_u.sid.prefix == NULL) {
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);
1828 /* Done if we've both sid and winname */
1829 if (req->id1.idmap_id_u.sid.prefix != NULL && req->id1name != NULL) {
1834 if (req->id1.idmap_id_u.sid.prefix != NULL) {
1835 /* Lookup sid to winname */
1837 req->id1.idmap_id_u.sid.prefix,
1838 req->id1.idmap_id_u.sid.rid, &name, &domain, &type);
1840 /* Lookup winame to sid */
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;
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,
2060 if (res->id.idmap_id_u.sid.prefix != NULL &&
2067 if (res->id.idmap_id_u.sid.prefix != NULL) {
2077 qs, res->id.idmap_id_u.sid.prefix,
2078 &res->id.idmap_id_u.sid.rid,
2098 &res->id.idmap_id_u.sid.prefix,
2099 &res->id.idmap_id_u.sid.rid,
2130 &res->id.idmap_id_u.sid.prefix,
2131 &res->id.idmap_id_u.sid.rid,
2157 &res->id.idmap_id_u.sid.prefix,
2158 &res->id.idmap_id_u.sid.rid,
2328 res->id.idmap_id_u.sid.prefix == NULL &&
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 &&
2653 * At this point we have either sid or winname or both. If we don't
2654 * have both then lookup name_cache for the sid or winname
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,
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,
2726 * Even if we have both sid and winname, we still may need to batch
2759 * <machine-sid-prefix>-<1000 + uid>
2760 * <machine-sid-prefix>-<2^31 + gid>
2767 free(res->id.idmap_id_u.sid.prefix);
2768 res->id.idmap_id_u.sid.prefix = NULL;
2789 res->id.idmap_id_u.sid.prefix =
2791 if (res->id.idmap_id_u.sid.prefix == NULL) {
2797 res->id.idmap_id_u.sid.rid =
2829 if ((sidprefix = req->id1.idmap_id_u.sid.prefix) == NULL)
2832 rid = req->id1.idmap_id_u.sid.rid;
3286 idmap_sid *sid;
3293 sid = &state->batch->idmap_mapping_batch_val[key].id1.
3294 idmap_id_u.sid;
3295 if (sid->rid == rid && strcmp(sid->prefix, prefix) == 0) {
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) &&
3675 res->id.idmap_id_u.sid.prefix, res->id.idmap_id_u.sid.rid,
3708 res->id.idmap_id_u.sid.prefix, res->id.idmap_id_u.sid.rid,
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,
3858 req->id1.idmap_id_u.sid.prefix, req->id1.idmap_id_u.sid.rid,
3963 res->id.idmap_id_u.sid.rid =
3965 res->id.idmap_id_u.sid.prefix = strdup(values[0]);
3966 if (res->id.idmap_id_u.sid.prefix == NULL) {
4426 assert(res->id.idmap_id_u.sid.prefix == NULL); /* No SID either */
4514 &res->id.idmap_id_u.sid.prefix,
4515 &res->id.idmap_id_u.sid.rid,
4614 * req->id..sid.[prefix, rid] =
4635 * req->id2..[uid or gid or sid] =
4660 if (req->id2.idmap_id_u.sid.prefix != NULL) {
4662 free(req->id2.idmap_id_u.sid.prefix);
4663 req->id2.idmap_id_u.sid.prefix = NULL;
4809 if (res->id.idmap_id_u.sid.prefix == NULL) {
4823 } else if (res->id.idmap_id_u.sid.prefix != NULL) {