return cache;
}
-void idmap_cache_shutdown(struct idmap_cache_ctx *cache)
-{
- talloc_free(cache);
-}
-
-NTSTATUS idmap_cache_build_sidkey(TALLOC_CTX *ctx, char **sidkey, const struct id_map *id)
+static NTSTATUS idmap_cache_build_sidkey(TALLOC_CTX *ctx, char **sidkey,
+ const struct id_map *id)
{
fstring sidstr;
return NT_STATUS_OK;
}
-NTSTATUS idmap_cache_build_idkey(TALLOC_CTX *ctx, char **idkey, const struct id_map *id)
+static NTSTATUS idmap_cache_build_idkey(TALLOC_CTX *ctx, char **idkey,
+ const struct id_map *id)
{
*idkey = talloc_asprintf(ctx, "IDMAP/%s/%lu",
(id->xid.type==ID_TYPE_UID)?"UID":"GID",
return ret;
}
-NTSTATUS idmap_cache_fill_map(struct id_map *id, const char *value)
+static NTSTATUS idmap_cache_fill_map(struct id_map *id, const char *value)
{
char *rem;
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}
-bool idmap_cache_is_negative(const char *val)
-{
- if ( ! strcmp("IDMAP/NEGATIVE", val)) {
- return True;
- }
- return False;
-}
-
/* search the cahce for the SID an return a mapping if found *
*
* 4 cases are possible