diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-07-06 03:23:58 +0300 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-07-08 02:38:33 +0300 |
commit | 2ee14378c3b9e46a71b50a37a18ae0bb2705f131 (patch) | |
tree | 771f6f810d965e0cb35f92f841cf3df0288008fa | |
parent | d7bcac5a9f39a325d984269f7e8651870dcb82ab (diff) | |
download | samba-2ee14378c3b9e46a71b50a37a18ae0bb2705f131.tar.gz samba-2ee14378c3b9e46a71b50a37a18ae0bb2705f131.tar.bz2 samba-2ee14378c3b9e46a71b50a37a18ae0bb2705f131.zip |
s4-source4/dsdb/samdb/ldb_modules/repl_meta_data.c Use DSDB_FLAG_NEXT_MODULE flag
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index 8668b5e204..90af17f7ec 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -1117,7 +1117,8 @@ static int replmd_update_rpmd(struct ldb_module *module, * replmd_update_rpmd_element() */ ret = dsdb_module_search_dn(module, msg, &res, msg->dn, attrs, - DSDB_SEARCH_SHOW_DELETED | + DSDB_FLAG_NEXT_MODULE | + DSDB_SEARCH_SHOW_DELETED | DSDB_SEARCH_SHOW_EXTENDED_DN | DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT | DSDB_SEARCH_REVEAL_INTERNALS); @@ -1970,7 +1971,8 @@ static int replmd_modify_handle_linked_attribs(struct ldb_module *module, } ret = dsdb_module_search_dn(module, msg, &res, msg->dn, NULL, - DSDB_SEARCH_SHOW_DELETED | + DSDB_FLAG_NEXT_MODULE | + DSDB_SEARCH_SHOW_DELETED | DSDB_SEARCH_REVEAL_INTERNALS | DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT); if (ret != LDB_SUCCESS) { @@ -2407,7 +2409,8 @@ static int replmd_delete(struct ldb_module *module, struct ldb_request *req) /* we need the complete msg off disk, so we can work out which attributes need to be removed */ ret = dsdb_module_search_dn(module, tmp_ctx, &res, old_dn, NULL, - DSDB_SEARCH_SHOW_DELETED | + DSDB_FLAG_NEXT_MODULE | + DSDB_SEARCH_SHOW_DELETED | DSDB_SEARCH_REVEAL_INTERNALS | DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT); if (ret != LDB_SUCCESS) { @@ -2527,6 +2530,7 @@ static int replmd_delete(struct ldb_module *module, struct ldb_request *req) /* we need the storage form of the parent GUID */ ret = dsdb_module_search_dn(module, tmp_ctx, &parent_res, ldb_dn_get_parent(tmp_ctx, old_dn), NULL, + DSDB_FLAG_NEXT_MODULE | DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT | DSDB_SEARCH_REVEAL_INTERNALS| DSDB_SEARCH_SHOW_DELETED); |