Fix bug #5713 by correcting the generated schema.
[kai/samba.git] / source4 / dsdb / schema / schema_description.c
index 9d93af9260a87ccfbfe5b4bb0257441cec35fe62..d780fcf34f864bec9dd3b6004b05079f2f68cef1 100644 (file)
@@ -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);