summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-19 20:56:41 +1100
committerAndrew Tridgell <tridge@samba.org>2009-12-21 23:41:06 +1100
commita070119de34274e6122461d9cc0e9829b5fb6865 (patch)
treec6a81158437bb4f91d0b75cbe865245b5a94237a /source4
parent9d56f656d4f593289340a876445785cdfefd3d91 (diff)
downloadsamba-a070119de34274e6122461d9cc0e9829b5fb6865.tar.gz
samba-a070119de34274e6122461d9cc0e9829b5fb6865.tar.bz2
samba-a070119de34274e6122461d9cc0e9829b5fb6865.zip
s4-dsdb: added DSDB_MODIFY_RELAX flag to the dsdb_module_*() calls
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/util.c7
-rw-r--r--source4/dsdb/samdb/ldb_modules/util.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/util.c b/source4/dsdb/samdb/ldb_modules/util.c
index acc1c01959..8503584ea6 100644
--- a/source4/dsdb/samdb/ldb_modules/util.c
+++ b/source4/dsdb/samdb/ldb_modules/util.c
@@ -87,6 +87,13 @@ int dsdb_request_add_controls(struct ldb_module *module, struct ldb_request *req
}
}
+ if (dsdb_flags & DSDB_MODIFY_RELAX) {
+ ret = ldb_request_add_control(req, LDB_CONTROL_RELAX_OID, false, NULL);
+ if (ret != LDB_SUCCESS) {
+ return ret;
+ }
+ }
+
return LDB_SUCCESS;
}
diff --git a/source4/dsdb/samdb/ldb_modules/util.h b/source4/dsdb/samdb/ldb_modules/util.h
index 41ed883dc2..cc184eee8f 100644
--- a/source4/dsdb/samdb/ldb_modules/util.h
+++ b/source4/dsdb/samdb/ldb_modules/util.h
@@ -28,3 +28,4 @@ struct GUID;
#define DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT 0x0004
#define DSDB_SEARCH_REVEAL_INTERNALS 0x0008
#define DSDB_SEARCH_SHOW_EXTENDED_DN 0x0010
+#define DSDB_MODIFY_RELAX 0x0020