s4-dsdb: don't return the partition root objects
authorAndrew Tridgell <tridge@samba.org>
Mon, 28 Sep 2009 02:28:59 +0000 (12:28 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 28 Sep 2009 03:11:21 +0000 (13:11 +1000)
commitf279b57f194d1be3600215b98e7e5fc6431d31c3
treecb7e386f8e722a918dfde89bb7ef13130946d5ae
parentda3f5a4113d7c828dc7d14226361473fb9ff00e7
s4-dsdb: don't return the partition root objects

When searching across partitions, we want to avoid sending duplicate
records caused by the record appearing both as a mount point and as a
partition root in a nested partition. This patch works by intercepting
objects from searches and checking if they match a partition root. If
they do, and the partition is not the one in the partition control
request, then discard the object.
source4/dsdb/samdb/ldb_modules/partition.c