[SAMBA4][PATCH] Handle search_options control in LDB

Andrew Bartlett abartlet at samba.org
Wed Feb 21 10:17:57 GMT 2007

On Wed, 2007-02-21 at 08:41 +0100, Stefan (metze) Metzmacher wrote:
> Hash: SHA1
> Andrew Bartlett schrieb:
> > On Tue, 2007-02-20 at 08:24 -0500, simo wrote:
> >> On Tue, 2007-02-20 at 18:00 +1100, Andrew Bartlett wrote:
> >>> Attached please find a patch to implement the server_side of the
> >>> search_options control, for the 'phantom root' bit (only).
> >> Can you also implement the other bit?
> > 
> > I'm not entirely clear on it's behaviour.
> That would mean we need to send referals back in the normal case,
> for sub partitions on a subtree search, and reply with the normal
> object in a one level search...
> On Windows ADS servers, partitions are stored separated!
> Enumerated the tree hierarchy, and if they reach a object
> with the INSTANCE_TYPE_IS_NC_HEAD flag in the instanceType attribute
> and the search scope is subtree they return a referral for this object
> and don't walk to child objects. In all other cases the complete object
> is returned.
> With the DOMAIN_SCOPE bit, no referrals are returned, but the
> normal object.
> With the PHANTOM_ROOT bit the INSTANCE_TYPE_IS_NC_HEAD is ignored
> completely.
> So out design of partitions doesn't match the windows one...

Yeah, and I'm not sure how to implement this from where we are now.

> But for now we might find an easier way with the current design...:-)

Can I put the patch in for just the phantom root flag, and then let you
implement the domain scope flag?


Andrew Bartlett

Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.                  http://redhat.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20070221/c2fb3589/attachment.bin

More information about the samba-technical mailing list