summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/schema/schema_description.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/schema/schema_description.c b/source4/dsdb/schema/schema_description.c
index 9d93af9260..d780fcf34f 100644
--- a/source4/dsdb/schema/schema_description.c
+++ b/source4/dsdb/schema/schema_description.c
@@ -182,7 +182,7 @@ char *schema_class_description(TALLOC_CTX *mem_ctx,
IF_NULL_FAIL_RET(schema_entry);
}
- if (subClassOf) {
+ if (subClassOf && strcasecmp(subClassOf, name) == 0) {
schema_entry = talloc_asprintf_append(schema_entry,
"SUP %s%s", subClassOf, seperator);
IF_NULL_FAIL_RET(schema_entry);