Lines Matching refs:sidprefix

763 idmap_iter_next_mapping(idmap_iter_t *iter, char **sidprefix,
773 if (sidprefix)
774 *sidprefix = NULL;
830 if (sidprefix) {
834 *sidprefix = strdup(str);
835 if (*sidprefix == NULL) {
886 if (sidprefix && *sidprefix)
887 free(*sidprefix);
961 * sidprefix - SID prefix
972 idmap_get_uidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
975 return (idmap_getext_uidbysid(gh, sidprefix, rid, flag, uid,
983 * sidprefix - SID prefix
996 idmap_getext_uidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
1005 if (uid == NULL || sidprefix == NULL)
1010 retcode = idmap_cache_lookup_uidbysid(sidprefix, rid, uid);
1026 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) {
1055 * sidprefix - SID prefix
1066 idmap_get_gidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
1069 return (idmap_getext_gidbysid(gh, sidprefix, rid, flag, gid,
1078 * sidprefix - SID prefix
1090 idmap_getext_gidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
1100 if (gid == NULL || sidprefix == NULL)
1105 retcode = idmap_cache_lookup_gidbysid(sidprefix, rid, gid);
1121 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) {
1150 * sidprefix - SID prefix
1163 idmap_get_pidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
1166 return (idmap_getext_pidbysid(gh, sidprefix, rid, flag, pid, is_user,
1176 * sidprefix - SID prefix
1190 idmap_getext_pidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid,
1199 if (pid == NULL || sidprefix == NULL || is_user == NULL)
1204 retcode = idmap_cache_lookup_pidbysid(sidprefix, rid, pid,
1221 if ((mapping->id1.idmap_id_u.sid.prefix = strdup(sidprefix)) == NULL) {
1263 char **sidprefix, idmap_rid_t *rid, idmap_stat *stat)
1265 return (idmap_getext_sidbyuid(gh, uid, flag, sidprefix, rid,
1287 char **sidprefix, idmap_rid_t *rid, idmap_info *info, idmap_stat *stat)
1296 if (sidprefix == NULL)
1301 retcode = idmap_cache_lookup_sidbyuid(sidprefix, rid, uid);
1321 gh->retlist[gh->next].sidprefix = sidprefix;
1347 * sidprefix - SID prefix (if stat == 0)
1354 char **sidprefix, idmap_rid_t *rid, idmap_stat *stat)
1356 return (idmap_getext_sidbygid(gh, gid, flag, sidprefix, rid,
1370 * sidprefix - SID prefix (if stat == 0)
1378 char **sidprefix, idmap_rid_t *rid, idmap_info *info, idmap_stat *stat)
1387 if (sidprefix == NULL)
1392 retcode = idmap_cache_lookup_sidbygid(sidprefix, rid, gid);
1412 gh->retlist[gh->next].sidprefix = sidprefix;
1532 if (gh->retlist[i].sidprefix) {
1535 *gh->retlist[i].sidprefix = NULL;
1538 *gh->retlist[i].sidprefix =
1540 if (*gh->retlist[i].sidprefix == NULL)
1603 const char *sidprefix, idmap_rid_t *rid,
1624 if (sidprefix && rid) {
1625 request.id1.idmap_id_u.sid.prefix = (char *)sidprefix;
1709 char **sidprefix, idmap_rid_t *rid,
1717 if (sidprefix)
1718 *sidprefix = NULL;
1784 if (sidprefix && mapping->id2.idmap_id_u.sid.prefix &&
1786 *sidprefix = strdup(mapping->id2.idmap_id_u.sid.prefix);
1787 if (*sidprefix == NULL) {
1806 if (sidprefix && *sidprefix) {
1807 free(*sidprefix);
1808 *sidprefix = NULL;