s4-dirsync: use dsdb_module_dn_by_guid() not dsdb_find_dn_by_guid() in modules
authorAndrew Tridgell <tridge@samba.org>
Mon, 15 Aug 2011 05:59:23 +0000 (15:59 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 17 Aug 2011 23:26:59 +0000 (09:26 +1000)
this prevents us going to the top level of the module stack

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/dsdb/samdb/ldb_modules/dirsync.c

index 7ed1ed3943d3dbf4e9a128d1c1e5ee680763e760..6a5703ab5f11d9442c081157d267434498d4ab32 100644 (file)
@@ -522,7 +522,7 @@ skip:
                                                                        el->name, ldb_dn_get_linearized(copydn)));
                                                                return ldb_operr(ldb);
                                                        }
-                                                       ret = dsdb_find_dn_by_guid(ldb, newmsg, &guid, &tdn);
+                                                       ret = dsdb_module_dn_by_guid(dsc->module, newmsg, &guid, &tdn, req);
                                                        if (ret == LDB_ERR_NO_SUCH_OBJECT) {
                                                                DEBUG(2, (" Search of guid %s returned 0 objects, skipping it !\n",
                                                                                        GUID_string(newmsg, &guid)));