summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-10-07 13:19:48 +1100
committerAndrew Tridgell <tridge@samba.org>2011-10-07 13:20:44 +1100
commita729dbb269d4a368f79dcadaa5e74adb91bfd6e2 (patch)
tree9f1576924d4e7a40c60df40894e92f1c39503b6c
parenta5f311d4690f6b76e6bd304b1fad98811488ed1f (diff)
downloadsamba-a729dbb269d4a368f79dcadaa5e74adb91bfd6e2.tar.gz
samba-a729dbb269d4a368f79dcadaa5e74adb91bfd6e2.tar.bz2
samba-a729dbb269d4a368f79dcadaa5e74adb91bfd6e2.zip
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 <abartlet@samba.org>
-rw-r--r--source4/dsdb/schema/schema_set.c3
1 files changed, 2 insertions, 1 deletions
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;
}