Lines Matching defs:mapping

567  * Create iterator to get name-based mapping rules
618 * Iterate through the name-based mapping rules
936 * Create handle to get SID to UID/GID mapping entries
939 * gh - "get mapping" handle
990 * how - mapping type if stat = 0
1000 idmap_mapping *mapping = NULL;
1022 mapping = &gh->batch.idmap_mapping_batch_val[gh->next];
1023 mapping->flag = flag;
1024 mapping->id1.idtype = IDMAP_SID;
1025 mapping->id1.idmap_id_u.sid.rid = rid;
1026 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) {
1030 mapping->id2.idtype = IDMAP_UID;
1044 if (mapping)
1045 (void) memset(mapping, 0, sizeof (*mapping));
1085 * how - mapping type if stat = 0
1095 idmap_mapping *mapping = NULL;
1117 mapping = &gh->batch.idmap_mapping_batch_val[gh->next];
1118 mapping->flag = flag;
1119 mapping->id1.idtype = IDMAP_SID;
1120 mapping->id1.idmap_id_u.sid.rid = rid;
1121 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) {
1125 mapping->id2.idtype = IDMAP_GID;
1138 if (mapping)
1139 (void) memset(mapping, 0, sizeof (*mapping));
1185 * how - mapping type if stat = 0
1194 idmap_mapping *mapping = NULL;
1217 mapping = &gh->batch.idmap_mapping_batch_val[gh->next];
1218 mapping->flag = flag;
1219 mapping->id1.idtype = IDMAP_SID;
1220 mapping->id1.idmap_id_u.sid.rid = rid;
1221 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) {
1225 mapping->id2.idtype = IDMAP_POSIXID;
1240 if (mapping)
1241 (void) memset(mapping, 0, sizeof (*mapping));
1281 * how - mapping type if stat = 0
1291 idmap_mapping *mapping = NULL;
1313 mapping = &gh->batch.idmap_mapping_batch_val[gh->next];
1314 mapping->flag = flag;
1315 mapping->id1.idtype = IDMAP_UID;
1316 mapping->id1.idmap_id_u.uid = uid;
1317 mapping->id2.idtype = IDMAP_SID;
1331 if (mapping)
1332 (void) memset(mapping, 0, sizeof (*mapping));
1372 * how - mapping type if stat = 0
1382 idmap_mapping *mapping = NULL;
1404 mapping = &gh->batch.idmap_mapping_batch_val[gh->next];
1405 mapping->flag = flag;
1406 mapping->id1.idtype = IDMAP_GID;
1407 mapping->id1.idmap_id_u.gid = gid;
1408 mapping->id2.idtype = IDMAP_SID;
1422 if (mapping)
1423 (void) memset(mapping, 0, sizeof (*mapping));
1430 * Process the batched "get mapping" requests. The results (i.e.
1584 * Destroy the "get mapping" handle
1599 * Get windows to unix mapping
1608 idmap_mapping request, *mapping;
1660 if ((mapping = result.mappings.mappings_val) == NULL) {
1667 idmap_info_mov(info, &mapping->info);
1669 if (mapping->id2.idtype == IDMAP_UID) {
1671 } else if (mapping->id2.idtype == IDMAP_GID) {
1677 if (mapping->id1.idtype == IDMAP_USID) {
1679 } else if (mapping->id1.idtype == IDMAP_GSID) {
1686 *direction = mapping->direction;
1688 *pid = mapping->id2.idmap_id_u.uid;
1690 rc = idmap_strdupnull(unixname, mapping->id2name);
1703 * Get unix to windows mapping
1713 idmap_mapping request, *mapping;
1763 if ((mapping = result.mappings.mappings_val) == NULL) {
1770 idmap_info_mov(info, &mapping->info);
1773 *direction = mapping->direction;
1776 if (mapping->id2.idtype == IDMAP_USID)
1778 else if (mapping->id2.idtype == IDMAP_GSID)
1784 if (sidprefix && mapping->id2.idmap_id_u.sid.prefix &&
1785 *mapping->id2.idmap_id_u.sid.prefix != '\0') {
1786 *sidprefix = strdup(mapping->id2.idmap_id_u.sid.prefix);
1793 *rid = mapping->id2.idmap_id_u.sid.rid;
1795 rc = idmap_strdupnull(winname, mapping->id2name);
1799 rc = idmap_strdupnull(windomain, mapping->id2domain);
1856 gettext("New mapping needs to be created"), EINVAL},
1865 gettext("No mapping for well-known SID"), EINVAL},
2118 /* Get mapping */
2154 /* Get mapping */
2197 /* Get mapping */