throw new LdapSchemaViolationException( ResultCodeEnum.INSUFFICIENT_ACCESS_RIGHTS, message );
}
}
// Inject the ModifiersName AT if it's not present
EntryAttribute attribute = new DefaultServerAttribute(
MODIFIERS_NAME_ATTRIBUTE_TYPE,
getPrincipal().getName());
Modification modifiersName = new ServerModification( ModificationOperation.REPLACE_ATTRIBUTE, attribute );
mods.add( modifiersName );
// Inject the ModifyTimestamp AT if it's not present
attribute = new DefaultServerAttribute(
MODIFY_TIMESTAMP_ATTRIBUTE_TYPE,
DateUtils.getGeneralizedTime() );
Modification timestamp = new ServerModification( ModificationOperation.REPLACE_ATTRIBUTE, attribute );