r20587: prepare the DSDB_EXTENDED_REPLICATED_OBJECTS_OID handling
authorStefan Metzmacher <metze@samba.org>
Sat, 6 Jan 2007 10:15:02 +0000 (10:15 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:37:08 +0000 (14:37 -0500)
metze
(This used to be commit ef3b325db060d43a7c2e058f6b8914b5867cd321)

source4/dsdb/samdb/ldb_modules/repl_meta_data.c
source4/dsdb/samdb/samdb.h

index 171af52eda843f2ce7a6912021d0044d061b0ae7..803142bbb7e88dd494d1b7f01dfdef6364f044ba 100644 (file)
@@ -311,10 +311,26 @@ static int replmd_modify(struct ldb_module *module, struct ldb_request *req)
        return replmd_modify_originating(module, req);
 }
 
+static int replmd_extended_replicated_objects(struct ldb_module *module, struct ldb_request *req)
+{
+       ldb_debug(module->ldb, LDB_DEBUG_TRACE, "replmd_extended_replicated_objects\n");
+       return LDB_ERR_OPERATIONS_ERROR;
+}
+
+static int replmd_extended(struct ldb_module *module, struct ldb_request *req)
+{
+       if (strcmp(req->op.extended.oid, DSDB_EXTENDED_REPLICATED_OBJECTS_OID) == 0) {
+               return replmd_extended_replicated_objects(module, req);
+       }
+
+       return ldb_next_request(module, req);
+}
+
 static const struct ldb_module_ops replmd_ops = {
        .name          = "repl_meta_data",
        .add           = replmd_add,
        .modify        = replmd_modify,
+       .extended      = replmd_extended,
 };
 
 int repl_meta_data_module_init(void)
index 7d16b2d380da42bc432472c8ba5ee562f10506d6..abd8875fbdeb20f71cd591121aed1876e527d07e 100644 (file)
@@ -34,6 +34,11 @@ struct dsdb_control_replicated_object {
        uint8_t __dummy;
 };
 
+#define DSDB_EXTENDED_REPLICATED_OBJECTS_OID "1.3.6.1.4.1.7165.4.4.1"
+struct dsdb_extended_replicated_objects {
+       uint8_t __dummy;
+};
+
 #include "librpc/gen_ndr/security.h"
 #include "lib/ldb/include/ldb.h"
 #include "librpc/gen_ndr/samr.h"