netcmd: Use next_free_rid() function to calculate a SID for restoring a backup
commit59d293b60608172ae61551c642d13d3b215924e4
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 27 May 2021 03:35:35 +0000 (27 15:35 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 11 Jun 2021 07:41:38 +0000 (11 07:41 +0000)
tree50a8a5e24e24c4179e9f1158d4d3b17b67c8aa59
parent7c7cad81844950c3efe9a540a47b9d4e1ce1b2a1
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>
python/samba/netcmd/domain_backup.py
selftest/knownfail.d/bug-14669 [deleted file]