From a729dbb269d4a368f79dcadaa5e74adb91bfd6e2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 7 Oct 2011 13:19:48 +1100 Subject: s4-dsdb: fixed one_way_link calculation we need to check for the other end of the link, not the current linkID Pair-Programmed-With: Andrew Bartlett --- source4/dsdb/schema/schema_set.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/dsdb/schema/schema_set.c') diff --git a/source4/dsdb/schema/schema_set.c b/source4/dsdb/schema/schema_set.c index 8cb06bb70e..18f3ab7b7c 100644 --- a/source4/dsdb/schema/schema_set.c +++ b/source4/dsdb/schema/schema_set.c @@ -241,7 +241,8 @@ static void dsdb_setup_attribute_shortcuts(struct ldb_context *ldb, struct dsdb_ continue; } /* handle attributes with a linkID but no backlink */ - if (dsdb_attribute_by_linkID(schema, attribute->linkID) == NULL) { + if ((attribute->linkID & 1) == 0 && + dsdb_attribute_by_linkID(schema, attribute->linkID + 1) == NULL) { attribute->one_way_link = true; continue; } -- cgit