Instance($server_id_src); $ldapserver_dst = $ldapservers->Instance($server_id_dst); if ($ldapserver_dst->isReadOnly()) pla_error(_('Destination server is currently READ-ONLY.')); if (! $ldapserver_src->haveAuthInfo() || ! $ldapserver_dst->haveAuthInfo()) pla_error(_('Not enough information to login to server. Please check your configuration.')); $dn_src = $_POST['old_dn']; $dn_dst = $_POST['new_dn']; $do_recursive = (isset($_POST['recursive']) && $_POST['recursive'] == 'on') ? true : false; $do_remove = (isset($_POST['remove']) && $_POST['remove'] == 'yes') ? true : false; include './header.php'; # Error checking if (0 == strlen(trim($dn_dst))) pla_error(_('You left the destination DN blank.')); if (pla_compare_dns($dn_src,$dn_dst) == 0 && $server_id_src == $server_id_dst) pla_error(_('The source and destination DN are the same.')); if ($ldapserver_dst->dnExists($dn_dst)) pla_error(sprintf(_('The destination entry (%s) already exists.'),pretty_print_dn($dn_dst))); if (! $ldapserver_dst->dnExists(get_container($dn_dst))) pla_error(sprintf(_('The destination container (%s) does not exist.'),pretty_print_dn(get_container($dn_dst)))); if ($do_recursive) { $filter = isset($_POST['filter']) ? $_POST['filter'] : '(objectClass=*)'; # Build a tree similar to that of the tree browser to give to r_copy_dn $snapshot_tree = array(); print '
'; printf('