Lines Matching refs:mapping

994 	idmap_mapping	*mapping = NULL;  in idmap_getext_uidbysid()  local
1016 mapping = &gh->batch.idmap_mapping_batch_val[gh->next]; in idmap_getext_uidbysid()
1017 mapping->flag = flag; in idmap_getext_uidbysid()
1018 mapping->id1.idtype = IDMAP_SID; in idmap_getext_uidbysid()
1019 mapping->id1.idmap_id_u.sid.rid = rid; in idmap_getext_uidbysid()
1020 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) { in idmap_getext_uidbysid()
1024 mapping->id2.idtype = IDMAP_UID; in idmap_getext_uidbysid()
1038 if (mapping) in idmap_getext_uidbysid()
1039 (void) memset(mapping, 0, sizeof (*mapping)); in idmap_getext_uidbysid()
1089 idmap_mapping *mapping = NULL; in idmap_getext_gidbysid() local
1111 mapping = &gh->batch.idmap_mapping_batch_val[gh->next]; in idmap_getext_gidbysid()
1112 mapping->flag = flag; in idmap_getext_gidbysid()
1113 mapping->id1.idtype = IDMAP_SID; in idmap_getext_gidbysid()
1114 mapping->id1.idmap_id_u.sid.rid = rid; in idmap_getext_gidbysid()
1115 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) { in idmap_getext_gidbysid()
1119 mapping->id2.idtype = IDMAP_GID; in idmap_getext_gidbysid()
1132 if (mapping) in idmap_getext_gidbysid()
1133 (void) memset(mapping, 0, sizeof (*mapping)); in idmap_getext_gidbysid()
1188 idmap_mapping *mapping = NULL; in idmap_getext_pidbysid() local
1211 mapping = &gh->batch.idmap_mapping_batch_val[gh->next]; in idmap_getext_pidbysid()
1212 mapping->flag = flag; in idmap_getext_pidbysid()
1213 mapping->id1.idtype = IDMAP_SID; in idmap_getext_pidbysid()
1214 mapping->id1.idmap_id_u.sid.rid = rid; in idmap_getext_pidbysid()
1215 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) { in idmap_getext_pidbysid()
1219 mapping->id2.idtype = IDMAP_POSIXID; in idmap_getext_pidbysid()
1234 if (mapping) in idmap_getext_pidbysid()
1235 (void) memset(mapping, 0, sizeof (*mapping)); in idmap_getext_pidbysid()
1285 idmap_mapping *mapping = NULL; in idmap_getext_sidbyuid() local
1307 mapping = &gh->batch.idmap_mapping_batch_val[gh->next]; in idmap_getext_sidbyuid()
1308 mapping->flag = flag; in idmap_getext_sidbyuid()
1309 mapping->id1.idtype = IDMAP_UID; in idmap_getext_sidbyuid()
1310 mapping->id1.idmap_id_u.uid = uid; in idmap_getext_sidbyuid()
1311 mapping->id2.idtype = IDMAP_SID; in idmap_getext_sidbyuid()
1325 if (mapping) in idmap_getext_sidbyuid()
1326 (void) memset(mapping, 0, sizeof (*mapping)); in idmap_getext_sidbyuid()
1376 idmap_mapping *mapping = NULL; in idmap_getext_sidbygid() local
1398 mapping = &gh->batch.idmap_mapping_batch_val[gh->next]; in idmap_getext_sidbygid()
1399 mapping->flag = flag; in idmap_getext_sidbygid()
1400 mapping->id1.idtype = IDMAP_GID; in idmap_getext_sidbygid()
1401 mapping->id1.idmap_id_u.gid = gid; in idmap_getext_sidbygid()
1402 mapping->id2.idtype = IDMAP_SID; in idmap_getext_sidbygid()
1416 if (mapping) in idmap_getext_sidbygid()
1417 (void) memset(mapping, 0, sizeof (*mapping)); in idmap_getext_sidbygid()
1602 idmap_mapping request, *mapping; in idmap_get_w2u_mapping() local
1660 if ((mapping = result.mappings.mappings_val) == NULL) { in idmap_get_w2u_mapping()
1667 idmap_info_mov(info, &mapping->info); in idmap_get_w2u_mapping()
1669 if (mapping->id2.idtype == IDMAP_UID) { in idmap_get_w2u_mapping()
1671 } else if (mapping->id2.idtype == IDMAP_GID) { in idmap_get_w2u_mapping()
1677 if (mapping->id1.idtype == IDMAP_USID) { in idmap_get_w2u_mapping()
1679 } else if (mapping->id1.idtype == IDMAP_GSID) { in idmap_get_w2u_mapping()
1686 *direction = mapping->direction; in idmap_get_w2u_mapping()
1688 *pid = mapping->id2.idmap_id_u.uid; in idmap_get_w2u_mapping()
1690 rc = idmap_strdupnull(unixname, mapping->id2name); in idmap_get_w2u_mapping()
1717 idmap_mapping request, *mapping; in idmap_get_u2w_mapping() local
1767 if ((mapping = result.mappings.mappings_val) == NULL) { in idmap_get_u2w_mapping()
1774 idmap_info_mov(info, &mapping->info); in idmap_get_u2w_mapping()
1777 *direction = mapping->direction; in idmap_get_u2w_mapping()
1780 if (mapping->id2.idtype == IDMAP_USID) in idmap_get_u2w_mapping()
1782 else if (mapping->id2.idtype == IDMAP_GSID) in idmap_get_u2w_mapping()
1788 if (sidprefix && mapping->id2.idmap_id_u.sid.prefix && in idmap_get_u2w_mapping()
1789 *mapping->id2.idmap_id_u.sid.prefix != '\0') { in idmap_get_u2w_mapping()
1790 *sidprefix = strdup(mapping->id2.idmap_id_u.sid.prefix); in idmap_get_u2w_mapping()
1797 *rid = mapping->id2.idmap_id_u.sid.rid; in idmap_get_u2w_mapping()
1799 rc = idmap_strdupnull(winname, mapping->id2name); in idmap_get_u2w_mapping()
1803 rc = idmap_strdupnull(windomain, mapping->id2domain); in idmap_get_u2w_mapping()