]> git.samba.org - samba.git/commitdiff
s4-dsdb: ask for an extended DN in dsdb_find_dn_by_guid()
authorAndrew Tridgell <tridge@samba.org>
Fri, 25 Sep 2009 03:13:22 +0000 (20:13 -0700)
committerAndrew Tridgell <tridge@samba.org>
Mon, 28 Sep 2009 00:23:20 +0000 (10:23 +1000)
source4/dsdb/common/util.c

index b6b90c9828af4a9c44cb1536607c9fe4f302c4a8..45f19e93bbd0805e405bea72eead959f16f17dc0 100644 (file)
@@ -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);