if ( log.isInfoEnabled() )
{
log.info( msg + ". SchemaChecker is throwing a schema violation exception." );
}
throw new LdapSchemaViolationException( msg, ResultCodeEnum.NOT_ALLOWED_ON_RDN );
}
// from here on the modify operation only deletes specific values
// of the Rdn attribute so we must check if one of those values
// are used by the Rdn attribute value pair for the name of the entry
String rdnValue = getRdnValue( id, name, schemaManager );
EntryAttribute rdnAttr = entry.get( id );
for ( Value<?> value:rdnAttr )
{
if ( rdnValue.equals( value.getString() ) )
{
String msg = I18n.err( I18n.ERR_274, id, name );
if ( log.isInfoEnabled() )
{
log.info( msg + ". SchemaChecker is throwing a schema violation exception." );
}
throw new LdapSchemaViolationException( msg, ResultCodeEnum.NOT_ALLOWED_ON_RDN );
}
}
}
}
}