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

Nicolas Capponi
07.06.2014 c01c421b26e6409febd6af1db1c9db11b7b347a4
opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/task/ResetUserPasswordTask.java
@@ -22,6 +22,7 @@
 *
 *
 *      Copyright 2008-2010 Sun Microsystems, Inc.
 *      Portions Copyright 2014 ForgeRock AS
 */
package org.opends.guitools.controlpanel.task;
@@ -85,7 +86,7 @@
    this.newPassword = pwd;
    try
    {
      dn = DN.decode(node.getDN());
      dn = DN.valueOf(node.getDN());
      for (BackendDescriptor backend : info.getServerDescriptor().getBackends())
      {
        for (BaseDNDescriptor baseDN : backend.getBaseDns())
@@ -269,11 +270,11 @@
  private boolean isBoundAs(DN dn, InitialLdapContext ctx)
  {
    boolean isBoundAs = false;
    DN bindDN = DN.nullDN();
    DN bindDN = DN.rootDN();
    try
    {
      String b = ConnectionUtils.getBindDN(ctx);
      bindDN = DN.decode(b);
      bindDN = DN.valueOf(b);
      isBoundAs = dn.equals(bindDN);
    }
    catch (Throwable t)
@@ -301,7 +302,7 @@
            Set<String> dns = ConnectionUtils.getValues(sr, attrName);
            for (String sDn : dns)
            {
              if (bindDN.equals(DN.decode(sDn)))
              if (bindDN.equals(DN.valueOf(sDn)))
              {
                isBoundAs = true;
                break;