summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/samldb.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-06 01:13:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:37:06 -0500
commit3137e4f2fe036824984352edf618a8eddde17c51 (patch)
treee9bdd334bd35a5015f4546911e59bc08d8d8f483 /source4/dsdb/samdb/ldb_modules/samldb.c
parent13881fa128d1e48b947512159271aae3f51b3572 (diff)
downloadsamba-3137e4f2fe036824984352edf618a8eddde17c51.tar.gz
samba-3137e4f2fe036824984352edf618a8eddde17c51.tar.bz2
samba-3137e4f2fe036824984352edf618a8eddde17c51.zip
r20580: pass the DSDB_CONTROL_REPLICATED_OBJECT_OID with the ldb_add request
when applying replicated objects. the samldb module ignores such requests now... and the repl_meta_data module has different functions for the replicated and originating cases... metze (This used to be commit a4d5e0126cfd6135ab829f4984269e265a868a28)
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/samldb.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samldb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c
index 1c1ff0ea6e..07d77ee3fc 100644
--- a/source4/dsdb/samdb/ldb_modules/samldb.c
+++ b/source4/dsdb/samdb/ldb_modules/samldb.c
@@ -680,6 +680,11 @@ static int samldb_add(struct ldb_module *module, struct ldb_request *req)
return ldb_next_request(module, req);
}
+ if (get_control_from_list(req->controls, DSDB_CONTROL_REPLICATED_OBJECT_OID)) {
+ /* if it's a replicated object we have nothing to do */
+ return ldb_next_request(module, req);
+ }
+
/* is user or computer? */
if ((samdb_find_attribute(module->ldb, msg, "objectclass", "user") != NULL) ||
(samdb_find_attribute(module->ldb, msg, "objectclass", "computer") != NULL)) {