summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-09-12 13:44:53 +0200
committerMichael Adam <obnox@samba.org>2013-10-02 00:50:10 +0200
commit6cdae0dd304707b844dc462f0743270758475335 (patch)
treeb1b3973a2f67847ffc6f37039c8dcc0e12757e94 /source3/include
parent9b7f9f90d2cdc8fd5919f7a94558f5346d35481e (diff)
downloadsamba-6cdae0dd304707b844dc462f0743270758475335.tar.gz
samba-6cdae0dd304707b844dc462f0743270758475335.tar.bz2
samba-6cdae0dd304707b844dc462f0743270758475335.zip
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 <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/idmap_autorid_tdb.h11
1 files changed, 11 insertions, 0 deletions
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
@@ -82,6 +82,17 @@ NTSTATUS idmap_autorid_setrange(struct db_context *db,
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.
*/