netcmd: Use next_free_rid() function to calculate a SID for restoring a backup
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 27 May 2021 03:35:35 +0000 (15:35 +1200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 12 Jul 2021 12:55:43 +0000 (12:55 +0000)
commita6447a1dce1bed1a33ab6aa729f5837acc3895f6
treeb2d8945758d4a25fb1047e583d462b3b8431fe2f
parent69d8b64fdc1b2d9b5ac88385af704e2935d6ca4e
netcmd: Use next_free_rid() function to calculate a SID for restoring a backup

This means we won't get errors if the DC doesn't have a rIDNextRID
attribute, but we will still error if there is no RID Set or if all its
pools are exhausted.

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>
(cherry picked from commit 59d293b60608172ae61551c642d13d3b215924e4)
python/samba/netcmd/domain_backup.py
selftest/knownfail.d/bug-14669 [deleted file]