s4-source4/dsdb/samdb/ldb_modules/linked_attributes.c Use DSDB_FLAG_NEXT_MODULE flag
authorKamen Mazdrashki <kamenim@samba.org>
Tue, 6 Jul 2010 00:25:41 +0000 (03:25 +0300)
committerKamen Mazdrashki <kamenim@samba.org>
Wed, 7 Jul 2010 23:38:35 +0000 (02:38 +0300)
source4/dsdb/samdb/ldb_modules/linked_attributes.c

index 67ae236fb190cf1074c5182f540200ad005e5e81..29f9d0d697f7ed329d9b429c477c190443b7ae3f 100644 (file)
@@ -620,6 +620,7 @@ static int linked_attributes_fix_links(struct ldb_module *module,
 
                ret = dsdb_module_search_dn(module, tmp_ctx, &res, dsdb_dn->dn,
                                            attrs,
+                                           DSDB_FLAG_NEXT_MODULE |
                                            DSDB_SEARCH_SHOW_DELETED |
                                            DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT |
                                            DSDB_SEARCH_REVEAL_INTERNALS);
@@ -712,7 +713,9 @@ static int linked_attributes_rename(struct ldb_module *module, struct ldb_reques
           - modify the target linked attributes with the new DN
        */
        ret = dsdb_module_search_dn(module, req, &res, req->op.rename.olddn,
-                                   NULL, DSDB_SEARCH_SHOW_DELETED);
+                                   NULL,
+                                   DSDB_FLAG_NEXT_MODULE |
+                                   DSDB_SEARCH_SHOW_DELETED);
        if (ret != LDB_SUCCESS) {
                return ret;
        }