[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#5534) Samba4 needs internal transactions/consistancy

Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Wed, 2008-05-28 at 08:14 -0700, Howard Chu wrote:
> Andrew Bartlett wrote:
> > On Tue, 2008-05-27 at 18:43 -0700, Howard Chu wrote:
> >> Andrew Bartlett wrote:
> >>> On Tue, 2008-05-27 at 18:22 -0700, Howard Chu wrote:
> >>>>> This needs to occur even between databases on the server, but I won=
't ask that
> >>>>> it occur outside the known trees.
> >>>> It's already possible for operations in one database to reference en=
tries in a
> >>>> different database, so that aspect of validation should be fine. How=
ever, as
> >>>> noted before, "validation" is generally bogus to begin with. In part=
> >>>> how do you create entries with circular references? If you disallow =
> >>>> to nonexistent entries, you can't set the references until after all=
 of the
> >>>> entries have been created. This means that you cannot backup a datab=
ase that
> >>>> has these references and then later reload it in a single pass.
> >>> An interesting point, but I need to match the windows runtime
> >>> behaviour.
> >> Only when it has a visible impact on other clients. What software will=
> >> if the directory allows you to add new entries that contain dangling
> >> references? What will break if the directory allows you to modify a re=
> >> attribute to point to a nonexistent entry?
> >
> > Sure, I'm not asking for a change to default behaviours.  I'm listing
> > the things that our testsuite finds are differences, and looking for
> > solutions.
> I don't believe your proposed solution will ever be satisfactory. Entries=
> circular references will also break syncrepl Refresh if the constraint yo=
> asking for is enforced.=20

Only if you don't consider them in replication.  If the backlinks are
added on each node, and not replicated, then surely you just need to
import a set of replicated data, and then in the same transaction update
the links.=20

Is there perhaps another way to implement this - say using a
search-based virtual attribute for one half of the problem?

I'm in no position to set your priorities, and my wishlist remains only
that I hope to someday be able to make this work with OpenLDAP, but
these issues remain.

Andrew Bartlett

Andrew Bartlett
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.

Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

Version: GnuPG v1.4.9 (GNU/Linux)