tests dsdb: Add tests for optionally unique objectSID's
authorGary Lockyer <gary@catalyst.net.nz>
Sun, 26 Nov 2017 21:45:37 +0000 (10:45 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 9 Dec 2017 23:47:29 +0000 (00:47 +0100)
commit073328673f0fb0a9797290f922ca8230e3f5fdf3
tree4dee05925ce634c282dd9d67d8bc0e3adffe9c76
parentb3d50723b00dfb7e1ee03eb1075e3341c8978fa2
tests dsdb: Add tests for optionally unique objectSID's

It is possible for foreign security principals to have duplicate object
sids, this can be the result of:
 a replication race condition generating conflict resolution objects
 or the foreign security principal being deleted and then re-added on a
 join.

Rather than remove unique check on all objectSIDs we wish to allow
duplicate objectSIDs for foreign security principals.  But enforce the
unique constraint for local objects.

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

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
python/samba/tests/dsdb.py
selftest/knownfail.d/dsdb [new file with mode: 0644]