diff options
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/common/util.c | 7 | ||||
-rw-r--r-- | source4/dsdb/common/util.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index f56cd07f3a..9b813d1b52 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -3660,6 +3660,13 @@ int dsdb_request_add_controls(struct ldb_request *req, uint32_t dsdb_flags) } } + if (dsdb_flags & DSDB_PROVISION) { + ret = ldb_request_add_control(req, LDB_CONTROL_PROVISION_OID, false, NULL); + if (ret != LDB_SUCCESS) { + return ret; + } + } + return LDB_SUCCESS; } diff --git a/source4/dsdb/common/util.h b/source4/dsdb/common/util.h index 7dabef8d87..fa876484cb 100644 --- a/source4/dsdb/common/util.h +++ b/source4/dsdb/common/util.h @@ -34,5 +34,6 @@ #define DSDB_TREE_DELETE 0x0100 #define DSDB_SEARCH_ONE_ONLY 0x0200 /* give an error unless 1 record */ #define DSDB_SEARCH_SHOW_RECYCLED 0x0400 +#define DSDB_PROVISION 0x0800 bool is_attr_in_list(const char * const * attrs, const char *attr); |