git.samba.org
/
kamenim
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r19831: Big ldb_dn optimization and interfaces enhancement patch
[kamenim/samba.git]
/
source4
/
lib
/
ldb
/
tools
/
ad2oLschema.c
diff --git
a/source4/lib/ldb/tools/ad2oLschema.c
b/source4/lib/ldb/tools/ad2oLschema.c
index 62c6e01c2e277e5cf1824bf320473fbae02e36e0..49c4fa1fd6713008f786440978b0889e34ad5f16 100644
(file)
--- a/
source4/lib/ldb/tools/ad2oLschema.c
+++ b/
source4/lib/ldb/tools/ad2oLschema.c
@@
-200,7
+200,7
@@
static struct ldb_dn *find_schema_dn(struct ldb_context *ldb, TALLOC_CTX *mem_ct
{
const char *rootdse_attrs[] = {"schemaNamingContext", NULL};
struct ldb_dn *schemadn;
{
const char *rootdse_attrs[] = {"schemaNamingContext", NULL};
struct ldb_dn *schemadn;
- struct ldb_dn *basedn = ldb_dn_
explode(mem_ctx, ""
);
+ struct ldb_dn *basedn = ldb_dn_
new(mem_ctx, ldb, NULL
);
struct ldb_result *rootdse_res;
int ldb_ret;
if (!basedn) {
struct ldb_result *rootdse_res;
int ldb_ret;
if (!basedn) {
@@
-222,7
+222,7
@@
static struct ldb_dn *find_schema_dn(struct ldb_context *ldb, TALLOC_CTX *mem_ct
}
/* Locate schema */
}
/* Locate schema */
- schemadn = ldb_msg_find_attr_as_dn(mem_ctx, rootdse_res->msgs[0], "schemaNamingContext");
+ schemadn = ldb_msg_find_attr_as_dn(
ldb,
mem_ctx, rootdse_res->msgs[0], "schemaNamingContext");
if (!schemadn) {
return NULL;
}
if (!schemadn) {
return NULL;
}