git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e32648
)
s4-dsdb: ask for an extended DN in dsdb_find_dn_by_guid()
author
Andrew Tridgell
<tridge@samba.org>
Fri, 25 Sep 2009 03:13:22 +0000
(20:13 -0700)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 28 Sep 2009 00:23:20 +0000
(10:23 +1000)
source4/dsdb/common/util.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/common/util.c
b/source4/dsdb/common/util.c
index b6b90c9828af4a9c44cb1536607c9fe4f302c4a8..45f19e93bbd0805e405bea72eead959f16f17dc0 100644
(file)
--- 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);