summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/dsdb/schema/schema_description.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/dsdb/schema/schema_description.c b/source/dsdb/schema/schema_description.c
index 9d93af9260a..d780fcf34f8 100644
--- a/source/dsdb/schema/schema_description.c
+++ b/source/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);