summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-10-12 19:53:47 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-10-12 18:35:33 +0000
commit1229935aa91126130c25a7e24e9cb3e74f3a61f9 (patch)
treef8af1abd5dc79949d9481575da438358f809b7d9 /source4/dsdb
parent24ec465790a062db7720914ae9b2c10eaa36e070 (diff)
downloadsamba-1229935aa91126130c25a7e24e9cb3e74f3a61f9.tar.gz
samba-1229935aa91126130c25a7e24e9cb3e74f3a61f9.tar.bz2
samba-1229935aa91126130c25a7e24e9cb3e74f3a61f9.zip
torture/becomedc: Add test for global schema, use samdb_connect().
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Oct 12 18:35:33 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/schema/schema_set.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/dsdb/schema/schema_set.c b/source4/dsdb/schema/schema_set.c
index 4a4466af34..21341157fe 100644
--- a/source4/dsdb/schema/schema_set.c
+++ b/source4/dsdb/schema/schema_set.c
@@ -487,6 +487,11 @@ int dsdb_set_global_schema(struct ldb_context *ldb)
return ret;
}
+bool dsdb_uses_global_schema(struct ldb_context *ldb)
+{
+ return (ldb_get_opaque(ldb, "dsdb_use_global_schema") != NULL);
+}
+
/**
* Find the schema object for this ldb
*
@@ -505,7 +510,7 @@ struct dsdb_schema *dsdb_get_schema(struct ldb_context *ldb, TALLOC_CTX *referen
}
/* see if we have a cached copy */
- use_global_schema = (ldb_get_opaque(ldb, "dsdb_use_global_schema") != NULL);
+ use_global_schema = dsdb_uses_global_schema(ldb);
if (use_global_schema) {
schema_in = global_schema;
} else {