parentDn.remove( parentDn.size() - 1 );
parentDn.normalize( globalRegistries.getAttributeTypeRegistry().getNormalizerMapping() );
if ( !parentDn.toNormName().equals( OU_OID + "=schema" ) )
{
throw new LdapInvalidNameException( "The parent dn of a schema should be " + OU_OID + "=schema and not: "
+ parentDn.toNormName(), ResultCodeEnum.NAMING_VIOLATION );
}
// check if the new schema is enabled or disabled
boolean isEnabled = false;
EntryAttribute disabled = entry.get( disabledAT );