summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-03-11 16:36:40 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-03-11 16:36:40 +1100
commit1f25b71d199a072f5ee1bdd8786e5c1c157f5888 (patch)
treeaca004093d72ea22e4d08f98fe2eb715988d598e /source4/dsdb
parent5ffe7de34845839f2306484cf882a43d2ea2acf1 (diff)
downloadsamba-1f25b71d199a072f5ee1bdd8786e5c1c157f5888.tar.gz
samba-1f25b71d199a072f5ee1bdd8786e5c1c157f5888.tar.bz2
samba-1f25b71d199a072f5ee1bdd8786e5c1c157f5888.zip
s4:schema Don't rely on objectCategory 'magic' when loading the schema
The short-to-long name canonicalisation rules use the schema, so clearly they won't work when loading it. Andrew Bartlett
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/schema/schema_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c
index 3396493636..b6a7cf7cc8 100644
--- a/source4/dsdb/schema/schema_init.c
+++ b/source4/dsdb/schema/schema_init.c
@@ -972,7 +972,7 @@ int dsdb_schema_from_schema_dn(TALLOC_CTX *mem_ctx, struct ldb_context *ldb,
*/
ret = ldb_search(ldb, tmp_ctx, &a_res,
schema_dn, LDB_SCOPE_ONELEVEL, NULL,
- "(objectCategory=attributeSchema)");
+ "(objectClass=attributeSchema)");
if (ret != LDB_SUCCESS) {
*error_string_out = talloc_asprintf(mem_ctx,
"dsdb_schema: failed to search attributeSchema objects: %s",
@@ -986,7 +986,7 @@ int dsdb_schema_from_schema_dn(TALLOC_CTX *mem_ctx, struct ldb_context *ldb,
*/
ret = ldb_search(ldb, tmp_ctx, &c_res,
schema_dn, LDB_SCOPE_ONELEVEL, NULL,
- "(objectCategory=classSchema)");
+ "(objectClass=classSchema)");
if (ret != LDB_SUCCESS) {
*error_string_out = talloc_asprintf(mem_ctx,
"dsdb_schema: failed to search attributeSchema objects: %s",