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

Jean-Noël Rouvignac
08.34.2016 a3c93828f847345ed67fda0cddf1089d8fb433d5
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/task/ResetUserPasswordTask.java
@@ -43,12 +43,8 @@
import org.opends.server.config.ConfigConstants;
import org.opends.server.tools.LDAPPasswordModify;
import org.forgerock.opendj.ldap.DN;
import org.opends.server.types.OpenDsException;
/**
 * The task called when we want to reset the password of the user.
 *
 */
/** The task called when we want to reset the password of the user. */
public class ResetUserPasswordTask extends Task
{
  private Set<String> backendSet;
@@ -74,24 +70,19 @@
    backendSet = new HashSet<>();
    this.node = node;
    this.newPassword = pwd;
    try
    dn = DN.valueOf(node.getDN());
    for (BackendDescriptor backend : info.getServerDescriptor().getBackends())
    {
      dn = DN.valueOf(node.getDN());
      for (BackendDescriptor backend : info.getServerDescriptor().getBackends())
      for (BaseDNDescriptor baseDN : backend.getBaseDns())
      {
        for (BaseDNDescriptor baseDN : backend.getBaseDns())
        if (dn.isSubordinateOrEqualTo(baseDN.getDn()))
        {
          if (dn.isSubordinateOrEqualTo(baseDN.getDn()))
          {
            backendSet.add(backend.getBackendID());
          }
          backendSet.add(backend.getBackendID());
        }
      }
    }
    catch (OpenDsException ode)
    {
      throw new RuntimeException("Could not parse DN: "+node.getDN(), ode);
    }
    try
    {
      InitialLdapContext ctx =