From 6cdae0dd304707b844dc462f0743270758475335 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 12 Sep 2013 13:44:53 +0200 Subject: idmap_autorid: add idmap_autorid_delete_range_by_sid() Delete a range mapping as specified by domain SID and range index. Signed-off-by: Michael Adam Reviewed-by: Volker Lendecke --- source3/include/idmap_autorid_tdb.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source3/include') diff --git a/source3/include/idmap_autorid_tdb.h b/source3/include/idmap_autorid_tdb.h index 88f15f2d1e..bf18483763 100644 --- a/source3/include/idmap_autorid_tdb.h +++ b/source3/include/idmap_autorid_tdb.h @@ -81,6 +81,17 @@ NTSTATUS idmap_autorid_setrange(struct db_context *db, uint32_t domain_range_index, uint32_t rangenum); +/** + * Delete a domain#index <-> range maping from the database. + * The mapping is specified by the sid and index. + * If force == true, invalid mapping records are deleted as far + * as possible, otherwise they are left untouched. + */ +NTSTATUS idmap_autorid_delete_range_by_sid(struct db_context *db, + const char *domsid, + uint32_t domain_range_index, + bool force); + /** * Initialize a specified HWM value to 0 if it is not * yet present in the database. -- cgit