diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-09-24 20:13:22 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-09-28 10:23:20 +1000 |
commit | d515b6e3265f61a8eaeaaa7b3afc1e536fb216ef (patch) | |
tree | bb521063e10a017c1ddb0407affca27340bff108 /source4/dsdb/common | |
parent | 9e326487687d1d2077964951093f49c9cddbff21 (diff) | |
download | samba-d515b6e3265f61a8eaeaaa7b3afc1e536fb216ef.tar.gz samba-d515b6e3265f61a8eaeaaa7b3afc1e536fb216ef.tar.bz2 samba-d515b6e3265f61a8eaeaaa7b3afc1e536fb216ef.zip |
s4-dsdb: ask for an extended DN in dsdb_find_dn_by_guid()
Diffstat (limited to 'source4/dsdb/common')
-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); |