diff options
author | Andrew Bartlett <abartlet@samba.org> | 2016-10-28 16:08:57 +1300 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2016-11-30 12:19:33 +0100 |
commit | b301f03573d1ebc7c539730bf77f2bfbe80b4df5 (patch) | |
tree | 0bd3adf475590221e34d4af7ff9fd7dfe006b837 /python/samba/samdb.py | |
parent | 3a1396a039eaf6176b729a5ce4167e8ddc9dfa23 (diff) | |
download | samba-b301f03573d1ebc7c539730bf77f2bfbe80b4df5.tar.gz |
dsdb: Add python hooks to allocate a RID set and allocate a RID pool
This will help us to correct errors during dbcheck
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=9954
(cherry picked from commit 035df7adbe9cc119324275275c2605433f6c4292)
Diffstat (limited to 'python/samba/samdb.py')
-rw-r--r-- | python/samba/samdb.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/samba/samdb.py b/python/samba/samdb.py index 3d7ea3ee666..eabe363aac9 100644 --- a/python/samba/samdb.py +++ b/python/samba/samdb.py @@ -963,3 +963,11 @@ accountExpires: %u return dsdb._dsdb_garbage_collect_tombstones(self, dn, current_time, tombstone_lifetime) + + def create_own_rid_set(self): + '''create a RID set for this DSA''' + return dsdb._dsdb_create_own_rid_set(self) + + def allocate_rid(self): + '''return a new RID from the RID Pool on this DSA''' + return dsdb._dsdb_allocate_rid(self) |