Remove the unique constraint on the objectSID index, and enable the
unique_object_sids module.
This allows duplicate objectSIDs on foreign security principals, and
disallows duplicates for local objectSIDs
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13004
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
+++ /dev/null
-^samba.tests.dsdb.samba.tests.dsdb.DsdbTests.test_duplicate_objectSIDs_allowed_on_foreign_security_principals\(
"subtree_delete",
"repl_meta_data",
"operational",
+ "unique_object_sids",
"subtree_rename",
"linked_attributes",
NULL};
*/
static bool dsdb_schema_unique_attribute(const char *attr)
{
- const char *attrs[] = { "objectGUID", "objectSid" , NULL };
+ const char *attrs[] = { "objectGUID", NULL };
unsigned int i;
for (i=0;attrs[i];i++) {
if (ldb_attr_cmp(attr, attrs[i]) == 0) {