Lines Matching defs:sidprefix

760 idmap_iter_next_mapping(idmap_iter_t *iter, char **sidprefix,
770 if (sidprefix)
771 *sidprefix = NULL;
827 if (sidprefix) {
831 *sidprefix = strdup(str);
832 if (*sidprefix == NULL) {
883 if (sidprefix && *sidprefix)
884 free(*sidprefix);
958 * sidprefix - SID prefix
969 idmap_get_uidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
972 return (idmap_getext_uidbysid(gh, sidprefix, rid, flag, uid,
980 * sidprefix - SID prefix
993 idmap_getext_uidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
1002 if (uid == NULL || sidprefix == NULL)
1007 retcode = idmap_cache_lookup_uidbysid(sidprefix, rid, uid);
1023 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) {
1052 * sidprefix - SID prefix
1063 idmap_get_gidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
1066 return (idmap_getext_gidbysid(gh, sidprefix, rid, flag, gid,
1075 * sidprefix - SID prefix
1087 idmap_getext_gidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
1097 if (gid == NULL || sidprefix == NULL)
1102 retcode = idmap_cache_lookup_gidbysid(sidprefix, rid, gid);
1118 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) {
1147 * sidprefix - SID prefix
1160 idmap_get_pidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
1163 return (idmap_getext_pidbysid(gh, sidprefix, rid, flag, pid, is_user,
1173 * sidprefix - SID prefix
1187 idmap_getext_pidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
1196 if (pid == NULL || sidprefix == NULL || is_user == NULL)
1201 retcode = idmap_cache_lookup_pidbysid(sidprefix, rid, pid,
1218 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) {
1260 char **sidprefix, idmap_rid_t *rid, idmap_stat *stat)
1262 return (idmap_getext_sidbyuid(gh, uid, flag, sidprefix, rid,
1284 char **sidprefix, idmap_rid_t *rid, idmap_info *info, idmap_stat *stat)
1293 if (sidprefix == NULL)
1298 retcode = idmap_cache_lookup_sidbyuid(sidprefix, rid, uid);
1318 gh->retlist[gh->next].sidprefix = sidprefix;
1344 * sidprefix - SID prefix (if stat == 0)
1351 char **sidprefix, idmap_rid_t *rid, idmap_stat *stat)
1353 return (idmap_getext_sidbygid(gh, gid, flag, sidprefix, rid,
1367 * sidprefix - SID prefix (if stat == 0)
1375 char **sidprefix, idmap_rid_t *rid, idmap_info *info, idmap_stat *stat)
1384 if (sidprefix == NULL)
1389 retcode = idmap_cache_lookup_sidbygid(sidprefix, rid, gid);
1409 gh->retlist[gh->next].sidprefix = sidprefix;
1529 if (gh->retlist[i].sidprefix) {
1532 *gh->retlist[i].sidprefix = NULL;
1535 *gh->retlist[i].sidprefix =
1537 if (*gh->retlist[i].sidprefix == NULL)
1600 const char *sidprefix, idmap_rid_t *rid,
1621 if (sidprefix && rid) {
1622 request.id1.idmap_id_u.sid.prefix = (char *)sidprefix;
1716 char **sidprefix, idmap_rid_t *rid,
1724 if (sidprefix)
1725 *sidprefix = NULL;
1791 if (sidprefix && mapping->id2.idmap_id_u.sid.prefix &&
1793 *sidprefix = strdup(mapping->id2.idmap_id_u.sid.prefix);
1794 if (*sidprefix == NULL) {
1813 if (sidprefix && *sidprefix) {
1814 free(*sidprefix);
1815 *sidprefix = NULL;