]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:dsdb/repl_meta_data: remove secret attributes on delete
authorStefan Metzmacher <metze@samba.org>
Fri, 8 Jul 2016 08:47:41 +0000 (10:47 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 9 Jul 2016 13:06:19 +0000 (15:06 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c

index 1a9a400b40a85af618dff0d12d84c93feb3d00f2..9a1ff166b30db7df0e1d3d953ffd163277f25794 100644 (file)
@@ -3130,6 +3130,11 @@ static int replmd_delete_internals(struct ldb_module *module, struct ldb_request
                "whenChanged",
                NULL
        };
+       static const char * const all_attrs[] = {
+               DSDB_SECRET_ATTRIBUTES,
+               "*",
+               NULL
+       };
        unsigned int i, el_count = 0;
        enum deletion_state deletion_state, next_deletion_state;
 
@@ -3167,7 +3172,7 @@ static int replmd_delete_internals(struct ldb_module *module, struct ldb_request
 
        /* 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,
+       ret = dsdb_module_search_dn(module, tmp_ctx, &res, old_dn, all_attrs,
                                    DSDB_FLAG_NEXT_MODULE |
                                    DSDB_SEARCH_SHOW_RECYCLED |
                                    DSDB_SEARCH_REVEAL_INTERNALS |