dsdb: Add next_free_rid() function to allocate a RID without modifying the database
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 24 May 2021 00:59:59 +0000 (12:59 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 11 Jun 2021 07:41:38 +0000 (07:41 +0000)
commitcc98e03e7a0f2bf7a1ace2950fe6500f53640c1b
tree4e6d0fc3d6c8cdc447cd1c0442e495d85afeb424
parentb7e6a1c5da7283c49586dc29f85ab19e0e57b0f6
dsdb: Add next_free_rid() function to allocate a RID without modifying the database

If used to generate SIDs for objects, care should be taken, as the
possibility for having duplicate objectSIDs can arise.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14669

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/samdb.py