isReadOnly()) pla_error(_('You cannot perform updates while server is in read-only mode')); if (! $ldapserver->haveAuthInfo()) pla_error(_('Not enough information to login to server. Please check your configuration.')); $dn = $_POST['dn']; if (is_null($dn)) pla_error(_('You must specify a DN')); if (! $ldapserver->dnExists($dn)) pla_error(sprintf(_('No such entry: %s'),''.pretty_print_dn($dn).'')); # Check the user-defined custom callback first. if (run_hook('pre_entry_delete',array('server_id'=>$ldapserver->server_id,'dn'=>$dn))) $del_result = $ldapserver->delete($dn); else pla_error(sprintf(_('Could not delete the entry: %s'),''.pretty_print_dn($dn).'')); if ($del_result) { # Custom callback run_hook('post_entry_delete',array('server_id'=>$ldapserver->server_id,'dn'=>$dn)); include './header.php'; echo '
'; echo ''; echo '