Question about LDB nested requests

Stefan (metze) Metzmacher metze at samba.org
Tue Dec 2 09:33:31 MST 2014


Hi Samuel,

> I am trying to retrieve the original attribute set specified in an add 
> request inside a LDB module. This module is below other ones which 
> create nested requests and add extra attributes to it, like the 
> descriptor module.
> 
> Is this approach correct? 
> 
> /* Retrieve the original add request */
> orig_req = req;
> while (orig_req && orig_req->handle && orig_req->handle->parent) {
>     orig_req = orig_req->handle->parent;
> }
> if (orig_req == NULL) {
>     return ldb_operr(ldb);
> }

Why do you want that?

The clean way would be a dsdb specific control that the top module
(maybe rootdse) would pass down.

metze

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20141202/80d0e3b4/attachment.pgp>


More information about the samba-technical mailing list