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