Lines Matching defs:sidprefix

758 idmap_iter_next_mapping(idmap_iter_t *iter, char **sidprefix,
768 if (sidprefix)
769 *sidprefix = NULL;
825 if (sidprefix) {
829 *sidprefix = strdup(str);
830 if (*sidprefix == NULL) {
881 if (sidprefix && *sidprefix)
882 free(*sidprefix);
956 * sidprefix - SID prefix
967 idmap_get_uidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
970 return (idmap_getext_uidbysid(gh, sidprefix, rid, flag, uid,
978 * sidprefix - SID prefix
991 idmap_getext_uidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
1000 if (uid == NULL || sidprefix == NULL)
1005 retcode = idmap_cache_lookup_uidbysid(sidprefix, rid, uid);
1021 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) {
1050 * sidprefix - SID prefix
1061 idmap_get_gidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
1064 return (idmap_getext_gidbysid(gh, sidprefix, rid, flag, gid,
1073 * sidprefix - SID prefix
1085 idmap_getext_gidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
1095 if (gid == NULL || sidprefix == NULL)
1100 retcode = idmap_cache_lookup_gidbysid(sidprefix, rid, gid);
1116 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) {
1145 * sidprefix - SID prefix
1158 idmap_get_pidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
1161 return (idmap_getext_pidbysid(gh, sidprefix, rid, flag, pid, is_user,
1171 * sidprefix - SID prefix
1185 idmap_getext_pidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
1194 if (pid == NULL || sidprefix == NULL || is_user == NULL)
1199 retcode = idmap_cache_lookup_pidbysid(sidprefix, rid, pid,
1216 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) {
1258 char **sidprefix, idmap_rid_t *rid, idmap_stat *stat)
1260 return (idmap_getext_sidbyuid(gh, uid, flag, sidprefix, rid,
1282 char **sidprefix, idmap_rid_t *rid, idmap_info *info, idmap_stat *stat)
1291 if (sidprefix == NULL)
1296 retcode = idmap_cache_lookup_sidbyuid(sidprefix, rid, uid);
1316 gh->retlist[gh->next].sidprefix = sidprefix;
1342 * sidprefix - SID prefix (if stat == 0)
1349 char **sidprefix, idmap_rid_t *rid, idmap_stat *stat)
1351 return (idmap_getext_sidbygid(gh, gid, flag, sidprefix, rid,
1365 * sidprefix - SID prefix (if stat == 0)
1373 char **sidprefix, idmap_rid_t *rid, idmap_info *info, idmap_stat *stat)
1382 if (sidprefix == NULL)
1387 retcode = idmap_cache_lookup_sidbygid(sidprefix, rid, gid);
1407 gh->retlist[gh->next].sidprefix = sidprefix;
1527 if (gh->retlist[i].sidprefix) {
1530 *gh->retlist[i].sidprefix = NULL;
1533 *gh->retlist[i].sidprefix =
1535 if (*gh->retlist[i].sidprefix == NULL)
1598 const char *sidprefix, idmap_rid_t *rid,
1619 if (sidprefix && rid) {
1620 request.id1.idmap_id_u.sid.prefix = (char *)sidprefix;
1714 char **sidprefix, idmap_rid_t *rid,
1722 if (sidprefix)
1723 *sidprefix = NULL;
1789 if (sidprefix && mapping->id2.idmap_id_u.sid.prefix &&
1791 *sidprefix = strdup(mapping->id2.idmap_id_u.sid.prefix);
1792 if (*sidprefix == NULL) {
1811 if (sidprefix && *sidprefix) {
1812 free(*sidprefix);
1813 *sidprefix = NULL;