Updated ldapjdk 4.05
git-svn-id: svn://10.0.0.236/trunk@53331 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1,8 +1,23 @@
|
||||
/* ======================================================================
|
||||
* Copyright (c) 1997 Netscape Communications Corporation
|
||||
* This file contains proprietary information of Netscape Communications.
|
||||
* Copying or reproduction without prior written approval is prohibited.
|
||||
* ======================================================================
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
import java.io.*;
|
||||
@@ -167,8 +182,7 @@ public class LDAPDelete extends LDAPTool { /* LDAPDelete */
|
||||
*/
|
||||
private static void dodelete() { /* dodelete */
|
||||
int msgid = 0;
|
||||
LDAPSearchConstraints cons =
|
||||
(LDAPSearchConstraints)m_client.getSearchConstraints().clone();
|
||||
LDAPConstraints cons = m_client.getConstraints();
|
||||
|
||||
Vector controlVector = new Vector();
|
||||
if (m_proxyControl != null)
|
||||
@@ -190,7 +204,7 @@ public class LDAPDelete extends LDAPTool { /* LDAPDelete */
|
||||
dodelete(cons);
|
||||
} /* dodelete */
|
||||
|
||||
private static void dodelete(LDAPSearchConstraints cons) {
|
||||
private static void dodelete(LDAPConstraints cons) {
|
||||
try {
|
||||
if (m_reader == null) {
|
||||
for (int i=0; i<m_delete_dn.length; i++)
|
||||
@@ -208,7 +222,7 @@ public class LDAPDelete extends LDAPTool { /* LDAPDelete */
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean deleteEntry(String dn, LDAPSearchConstraints cons) {
|
||||
private static boolean deleteEntry(String dn, LDAPConstraints cons) {
|
||||
if (m_verbose)
|
||||
System.err.println("Deleting entry: "+dn);
|
||||
if (!m_justShow) {
|
||||
|
||||
Reference in New Issue
Block a user