/**
* {@inheritDoc}
*/
public void delete( DeleteOperationContext deleteContext ) throws LdapException
{
CoreSession session = deleteContext.getSession();
// bypass authz code if we are disabled
if ( !directoryService.isAccessControlEnabled() )
{
next( deleteContext );
return;
}
Dn dn = deleteContext.getDn();
LdapPrincipal principal = session.getEffectivePrincipal();
Dn principalDn = principal.getDn();
Entry entry = deleteContext.getEntry();
protectCriticalEntries( deleteContext, dn );