pseudobacklink / one_way_link: corruption ahead
mat at samba.org
Wed Oct 5 12:25:42 MDT 2011
Hello Andrew and Tridge,
I made a couple of tests with the site handling today and discovered
some nasty things.
In order to reproduce them: just create a site and put it in the
DEFAULTIPSITELINK, then remove the site.
In theory the site should be removed from the siteList attribute, but
it's not !
I found first a bug, attribute that have only forward link were not
covered correctly by your patches, I made this fix: http://bit.ly/oJnYo0.
That was an easy one.
But if you look at the attribute, you will see an attribute that is
pointing to a deleted object, in most cases you expect in fact the
object not to be here, your implementation of backlink handle well the
renaming but not so well the deleting.
I think it should be quite easy to mask the attribute if the pointed dn
is the DN of a deleted object.
But then what would happen when replicating, I think a search with the
--reveal show it quite clearly:
sudo ./bin/ldbsearch -H ~/workspace/samba/home.matws.net/private/sam.ldb
-k 1 --cross-ncs '(sitelist=*)' sitelist --reveal --extended-dn
# record 1
The attribute is not removed, if we are running a samba only domain it's
mostly ok but in mixed domain it must be fun !
I'm also fearing some weird effect if a DC is promoted after the site
has been removed and deleted as we will return a link on a non existing
Please tell me how you think this could be solved, the best I can see is
a kind of garbage collector.
More information about the samba-technical