From 1dd9218de9b7b78fd23d3d19315c49dd4a9c3142 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 12 Sep 2013 23:59:15 +0200 Subject: idmap_autorid: add idmap_autorid_delete_range_by_num() query and delete a mapping specified by the range number. Signed-off-by: Michael Adam Reviewed-by: Volker Lendecke --- source3/include/idmap_autorid_tdb.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source3/include') diff --git a/source3/include/idmap_autorid_tdb.h b/source3/include/idmap_autorid_tdb.h index bf18483763..389ab922f9 100644 --- a/source3/include/idmap_autorid_tdb.h +++ b/source3/include/idmap_autorid_tdb.h @@ -92,6 +92,16 @@ NTSTATUS idmap_autorid_delete_range_by_sid(struct db_context *db, uint32_t domain_range_index, bool force); +/** + * Delete a domain#index <-> range maping from the database. + * The mapping is specified by the range number. + * If force == true, invalid mapping records are deleted as far + * as possible, otherwise they are left untouched. + */ +NTSTATUS idmap_autorid_delete_range_by_num(struct db_context *db, + uint32_t rangenum, + bool force); + /** * Initialize a specified HWM value to 0 if it is not * yet present in the database. -- cgit