diff options
-rw-r--r-- | source4/dsdb/common/util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index b6b90c9828..45f19e93bb 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -2155,6 +2155,11 @@ int dsdb_find_dn_by_guid(struct ldb_context *ldb, } options->search_options = LDB_SEARCH_OPTION_PHANTOM_ROOT; + ret = ldb_request_add_control(search_req, LDB_CONTROL_EXTENDED_DN_OID, true, NULL); + if (ret != LDB_SUCCESS) { + return ret; + } + ret = ldb_request_add_control(search_req, LDB_CONTROL_SEARCH_OPTIONS_OID, true, options); |