mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
26.01.2007 54c2799f45256fef4a981fa2a6a7c97a9708ac8b
opends/src/server/org/opends/server/admin/client/ldap/JNDIDirContextAdaptor.java
@@ -152,7 +152,7 @@
  @Override
  public void deleteSubtree(LdapName dn) throws NamingException {
    // Delete the children first.
    for (LdapName child : listEntries(dn)) {
    for (LdapName child : listEntries(dn, null)) {
      deleteSubtree(child);
    }
@@ -189,8 +189,12 @@
   * {@inheritDoc}
   */
  @Override
  public Collection<LdapName> listEntries(LdapName dn) throws NamingException {
    String filter = "(objectClass=*)";
  public Collection<LdapName> listEntries(LdapName dn, String filter)
      throws NamingException {
    if (filter == null) {
      filter = "(objectClass=*)";
    }
    SearchControls controls = new SearchControls();
    controls.setSearchScope(SearchControls.ONELEVEL_SCOPE);