I'm not sure if this fixes bug #5713, as this is not consistantly
reproducably on my equipment.
Andrew Bartlett
if (must) {
schema_entry = talloc_asprintf_append(schema_entry,
- "MUST ( ");
+ "MUST (%s", target == TARGET_AD_SCHEMA_SUBENTRY ? "" : " ");
IF_NULL_FAIL_RET(schema_entry);
APPEND_ATTRS(must);
if (may) {
schema_entry = talloc_asprintf_append(schema_entry,
- "MAY ( ");
+ "MAY (%s", target == TARGET_AD_SCHEMA_SUBENTRY ? "" : " ");
IF_NULL_FAIL_RET(schema_entry);
APPEND_ATTRS(may);