Lines Matching full:mapping
556 * Create iterator to get name-based mapping rules
613 * Iterate through the name-based mapping rules
931 * Create handle to get SID to UID/GID mapping entries
934 * gh - "get mapping" handle
985 * how - mapping type if stat = 0
995 idmap_mapping *mapping = NULL; in idmap_getext_uidbysid() local
1017 mapping = &gh->batch.idmap_mapping_batch_val[gh->next]; in idmap_getext_uidbysid()
1018 mapping->flag = flag; in idmap_getext_uidbysid()
1019 mapping->id1.idtype = IDMAP_SID; in idmap_getext_uidbysid()
1020 mapping->id1.idmap_id_u.sid.rid = rid; in idmap_getext_uidbysid()
1021 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) { in idmap_getext_uidbysid()
1025 mapping->id2.idtype = IDMAP_UID; in idmap_getext_uidbysid()
1039 if (mapping) in idmap_getext_uidbysid()
1040 (void) memset(mapping, 0, sizeof (*mapping)); in idmap_getext_uidbysid()
1080 * how - mapping type if stat = 0
1090 idmap_mapping *mapping = NULL; in idmap_getext_gidbysid() local
1112 mapping = &gh->batch.idmap_mapping_batch_val[gh->next]; in idmap_getext_gidbysid()
1113 mapping->flag = flag; in idmap_getext_gidbysid()
1114 mapping->id1.idtype = IDMAP_SID; in idmap_getext_gidbysid()
1115 mapping->id1.idmap_id_u.sid.rid = rid; in idmap_getext_gidbysid()
1116 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) { in idmap_getext_gidbysid()
1120 mapping->id2.idtype = IDMAP_GID; in idmap_getext_gidbysid()
1133 if (mapping) in idmap_getext_gidbysid()
1134 (void) memset(mapping, 0, sizeof (*mapping)); in idmap_getext_gidbysid()
1180 * how - mapping type if stat = 0
1189 idmap_mapping *mapping = NULL; in idmap_getext_pidbysid() local
1212 mapping = &gh->batch.idmap_mapping_batch_val[gh->next]; in idmap_getext_pidbysid()
1213 mapping->flag = flag; in idmap_getext_pidbysid()
1214 mapping->id1.idtype = IDMAP_SID; in idmap_getext_pidbysid()
1215 mapping->id1.idmap_id_u.sid.rid = rid; in idmap_getext_pidbysid()
1216 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) { in idmap_getext_pidbysid()
1220 mapping->id2.idtype = IDMAP_POSIXID; in idmap_getext_pidbysid()
1235 if (mapping) in idmap_getext_pidbysid()
1236 (void) memset(mapping, 0, sizeof (*mapping)); in idmap_getext_pidbysid()
1276 * how - mapping type if stat = 0
1286 idmap_mapping *mapping = NULL; in idmap_getext_sidbyuid() local
1308 mapping = &gh->batch.idmap_mapping_batch_val[gh->next]; in idmap_getext_sidbyuid()
1309 mapping->flag = flag; in idmap_getext_sidbyuid()
1310 mapping->id1.idtype = IDMAP_UID; in idmap_getext_sidbyuid()
1311 mapping->id1.idmap_id_u.uid = uid; in idmap_getext_sidbyuid()
1312 mapping->id2.idtype = IDMAP_SID; in idmap_getext_sidbyuid()
1326 if (mapping) in idmap_getext_sidbyuid()
1327 (void) memset(mapping, 0, sizeof (*mapping)); in idmap_getext_sidbyuid()
1367 * how - mapping type if stat = 0
1377 idmap_mapping *mapping = NULL; in idmap_getext_sidbygid() local
1399 mapping = &gh->batch.idmap_mapping_batch_val[gh->next]; in idmap_getext_sidbygid()
1400 mapping->flag = flag; in idmap_getext_sidbygid()
1401 mapping->id1.idtype = IDMAP_GID; in idmap_getext_sidbygid()
1402 mapping->id1.idmap_id_u.gid = gid; in idmap_getext_sidbygid()
1403 mapping->id2.idtype = IDMAP_SID; in idmap_getext_sidbygid()
1417 if (mapping) in idmap_getext_sidbygid()
1418 (void) memset(mapping, 0, sizeof (*mapping)); in idmap_getext_sidbygid()
1425 * Process the batched "get mapping" requests. The results (i.e.
1579 * Destroy the "get mapping" handle
1594 * Get windows to unix mapping
1603 idmap_mapping request, *mapping; in idmap_get_w2u_mapping() local
1661 if ((mapping = result.mappings.mappings_val) == NULL) { in idmap_get_w2u_mapping()
1668 idmap_info_mov(info, &mapping->info); in idmap_get_w2u_mapping()
1670 if (mapping->id2.idtype == IDMAP_UID) { in idmap_get_w2u_mapping()
1672 } else if (mapping->id2.idtype == IDMAP_GID) { in idmap_get_w2u_mapping()
1678 if (mapping->id1.idtype == IDMAP_USID) { in idmap_get_w2u_mapping()
1680 } else if (mapping->id1.idtype == IDMAP_GSID) { in idmap_get_w2u_mapping()
1687 *direction = mapping->direction; in idmap_get_w2u_mapping()
1689 *pid = mapping->id2.idmap_id_u.uid; in idmap_get_w2u_mapping()
1691 rc = idmap_strdupnull(unixname, mapping->id2name); in idmap_get_w2u_mapping()
1708 * Get unix to windows mapping
1718 idmap_mapping request, *mapping; in idmap_get_u2w_mapping() local
1768 if ((mapping = result.mappings.mappings_val) == NULL) { in idmap_get_u2w_mapping()
1775 idmap_info_mov(info, &mapping->info); in idmap_get_u2w_mapping()
1778 *direction = mapping->direction; in idmap_get_u2w_mapping()
1781 if (mapping->id2.idtype == IDMAP_USID) in idmap_get_u2w_mapping()
1783 else if (mapping->id2.idtype == IDMAP_GSID) in idmap_get_u2w_mapping()
1789 if (sidprefix && mapping->id2.idmap_id_u.sid.prefix && in idmap_get_u2w_mapping()
1790 *mapping->id2.idmap_id_u.sid.prefix != '\0') { in idmap_get_u2w_mapping()
1791 *sidprefix = strdup(mapping->id2.idmap_id_u.sid.prefix); in idmap_get_u2w_mapping()
1798 *rid = mapping->id2.idmap_id_u.sid.rid; in idmap_get_u2w_mapping()
1800 rc = idmap_strdupnull(winname, mapping->id2name); in idmap_get_u2w_mapping()
1804 rc = idmap_strdupnull(windomain, mapping->id2domain); in idmap_get_u2w_mapping()
1859 gettext("Mapping not found or inhibited"), EINVAL},
1861 gettext("New mapping needs to be created"), EINVAL},
1870 gettext("No mapping for well-known SID"), EINVAL},
1883 gettext("Mapping not found and none created (see -c option)"),
2123 /* Get mapping */ in idmap_getuidbywinname()
2159 /* Get mapping */ in idmap_getgidbywinname()
2202 /* Get mapping */ in idmap_getwinnamebypid()