From: Andrew Bartlett Date: Tue, 15 Mar 2016 02:11:30 +0000 (+1300) Subject: dsdb: Move operational below repl_meta_data so we can query parentGUID X-Git-Tag: tdb-1.3.10~979 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d67128814f27731d1cd7d137e822c894ab87a4b;p=thirdparty%2Fsamba.git dsdb: Move operational below repl_meta_data so we can query parentGUID This avoids re-adding the same code in repl_meta_data or making a shared subroutine Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam context, struct oc_context); ldb = ldb_module_get_ctx(ac->module); @@ -544,7 +545,7 @@ static int oc_op_callback(struct ldb_request *req, struct ldb_reply *ares) : ac->req->op.mod.message->dn; ret = ldb_build_search_req(&search_req, ldb, ac, base_dn, LDB_SCOPE_BASE, "(objectClass=*)", - NULL, NULL, ac, + attrs, NULL, ac, get_search_callback, ac->req); LDB_REQ_SET_LOCATION(search_req); if (ret != LDB_SUCCESS) { diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index 6596d457de1..b58a0074b86 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -4836,6 +4836,9 @@ static int replmd_replicated_apply_next(struct replmd_replicated_request *ar) char *tmp_str; char *filter; struct ldb_request *search_req; + static const char *attrs[] = { "*", "instanceType", + "replPropertyMetaData", "nTSecurityDescriptor", + NULL }; if (ar->index_current >= ar->objs->num_objects) { /* done with it, go to next stage */ @@ -4859,7 +4862,7 @@ static int replmd_replicated_apply_next(struct replmd_replicated_request *ar) ar->objs->partition_dn, LDB_SCOPE_SUBTREE, filter, - NULL, + attrs, NULL, ar, replmd_replicated_apply_search_callback, diff --git a/source4/dsdb/samdb/ldb_modules/samba_dsdb.c b/source4/dsdb/samdb/ldb_modules/samba_dsdb.c index ea72ec836d8..3297eb15c2e 100644 --- a/source4/dsdb/samdb/ldb_modules/samba_dsdb.c +++ b/source4/dsdb/samdb/ldb_modules/samba_dsdb.c @@ -280,7 +280,6 @@ static int samba_dsdb_init(struct ldb_module *module) "aclread", "samldb", "password_hash", - "operational", "instancetype", "objectclass_attrs", NULL }; @@ -294,6 +293,7 @@ static int samba_dsdb_init(struct ldb_module *module) "rdn_name", "subtree_delete", "repl_meta_data", + "operational", "subtree_rename", "linked_attributes", NULL};