Lines Matching refs:sid_prefix

71 	const char	**sid_prefix;
415 * sid_prefix - Domain SID in canonical form
425 kidmap_getuidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid,
436 if (sid_prefix == NULL || uid == NULL)
441 if (kidmap_cache_lookup_uidbysid(&zs->cache, sid_prefix, rid, uid)
447 mapping.id1.idmap_id_u.sid.prefix = (char *)sid_prefix;
469 sid_prefix);
492 * sid_prefix - Domain SID in canonical form
502 kidmap_getgidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid,
513 if (sid_prefix == NULL || gid == NULL)
518 if (kidmap_cache_lookup_gidbysid(&zs->cache, sid_prefix, rid, gid)
524 mapping.id1.idmap_id_u.sid.prefix = (char *)sid_prefix;
546 sid_prefix);
568 * sid_prefix - Domain SID in canonical form
579 kidmap_getpidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid,
590 if (sid_prefix == NULL || pid == NULL || is_user == NULL)
595 if (kidmap_cache_lookup_pidbysid(&zs->cache, sid_prefix, rid, pid,
601 mapping.id1.idmap_id_u.sid.prefix = (char *)sid_prefix;
631 sid_prefix);
660 * sid_prefix - Domain SID if return == IDMAP_SUCCESS
667 kidmap_getsidbyuid(zone_t *zone, uid_t uid, const char **sid_prefix,
679 if (sid_prefix == NULL || rid == NULL)
684 if (kidmap_cache_lookup_sidbyuid(&zs->cache, sid_prefix, rid, uid)
706 *sid_prefix = NULL;
713 *sid_prefix = kidmap_find_sid_prefix(
718 *sid_prefix, *rid, uid,
724 *sid_prefix = NULL;
731 *sid_prefix = NULL;
744 * sid_prefix - Domain SID if return == IDMAP_SUCCESS
751 kidmap_getsidbygid(zone_t *zone, gid_t gid, const char **sid_prefix,
762 if (sid_prefix == NULL || rid == NULL)
767 if (kidmap_cache_lookup_sidbygid(&zs->cache, sid_prefix, rid, gid)
789 *sid_prefix = NULL;
796 *sid_prefix = kidmap_find_sid_prefix(
801 *sid_prefix, *rid, gid,
807 *sid_prefix = NULL;
814 *sid_prefix = NULL;
886 * sid_prefix - Domain SID in canonical form
895 * The sid_prefix is copied.
898 kidmap_batch_getuidbysid(idmap_get_handle_t *get_handle, const char *sid_prefix,
904 if (get_handle == NULL || sid_prefix == NULL ||
908 if (kidmap_cache_lookup_uidbysid(&get_handle->zs->cache, sid_prefix,
914 /* Get a copy of sid_prefix */
915 sid_prefix = kidmap_find_sid_prefix(sid_prefix);
923 mapping->id1.idmap_id_u.sid.prefix = (char *)sid_prefix;
932 result->sid_prefix = NULL;
947 * sid_prefix - Domain SID in canonical form
956 * The sid_prefix is copied.
959 kidmap_batch_getgidbysid(idmap_get_handle_t *get_handle, const char *sid_prefix,
965 if (get_handle == NULL || sid_prefix == NULL ||
969 if (kidmap_cache_lookup_gidbysid(&get_handle->zs->cache, sid_prefix,
975 /* Get a copy of sid_prefix */
976 sid_prefix = kidmap_find_sid_prefix(sid_prefix);
984 mapping->id1.idmap_id_u.sid.prefix = (char *)sid_prefix;
993 result->sid_prefix = NULL;
1008 * sid_prefix - Domain SID in canonical form
1019 * The sid_prefix is copied.
1022 kidmap_batch_getpidbysid(idmap_get_handle_t *get_handle, const char *sid_prefix,
1028 if (get_handle == NULL || sid_prefix == NULL || pid == NULL ||
1032 if (kidmap_cache_lookup_pidbysid(&get_handle->zs->cache, sid_prefix,
1038 /* Get a copy of sid_prefix */
1039 sid_prefix = kidmap_find_sid_prefix(sid_prefix);
1047 mapping->id1.idmap_id_u.sid.prefix = (char *)sid_prefix;
1056 result->sid_prefix = NULL;
1082 const char **sid_prefix, uint32_t *rid, idmap_stat *stat)
1087 if (get_handle == NULL || sid_prefix == NULL ||
1092 sid_prefix, rid, uid) == IDMAP_SUCCESS) {
1111 result->sid_prefix = sid_prefix;
1137 const char **sid_prefix, uint32_t *rid, idmap_stat *stat)
1142 if (get_handle == NULL || sid_prefix == NULL ||
1147 sid_prefix, rid, gid) == IDMAP_SUCCESS) {
1166 result->sid_prefix = sid_prefix;
1197 const char *sid_prefix;
1243 if (result->sid_prefix)
1244 *result->sid_prefix = NULL;
1263 sid_prefix = kidmap_find_sid_prefix(
1267 cache, sid_prefix,
1273 cache, sid_prefix,
1286 sid_prefix = kidmap_find_sid_prefix(
1290 cache, sid_prefix,
1296 cache, sid_prefix,
1305 sid_prefix = kidmap_find_sid_prefix(
1307 if (result->sid_prefix && result->rid) {
1308 *result->sid_prefix = sid_prefix;
1314 cache, sid_prefix,
1321 cache, sid_prefix,
1337 if (result->sid_prefix)
1338 *result->sid_prefix = NULL;
1363 if (result->sid_prefix)
1364 *result->sid_prefix = NULL;