summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-09-12 23:59:15 +0200
committerMichael Adam <obnox@samba.org>2013-10-02 00:50:11 +0200
commit1dd9218de9b7b78fd23d3d19315c49dd4a9c3142 (patch)
tree4654c1b9ec7b3d34d3dc23c678adace794571928 /source3/include
parent6cdae0dd304707b844dc462f0743270758475335 (diff)
downloadsamba-1dd9218de9b7b78fd23d3d19315c49dd4a9c3142.tar.gz
samba-1dd9218de9b7b78fd23d3d19315c49dd4a9c3142.tar.bz2
samba-1dd9218de9b7b78fd23d3d19315c49dd4a9c3142.zip
idmap_autorid: add idmap_autorid_delete_range_by_num()
query and delete a mapping specified by the range number. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/idmap_autorid_tdb.h10
1 files changed, 10 insertions, 0 deletions
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
@@ -93,6 +93,16 @@ NTSTATUS idmap_autorid_delete_range_by_sid(struct db_context *db,
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.
*/