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

Jean-Noel Rouvignac
16.23.2015 e0190b324fb92c3b82cd143d3aab1eeede951e94
opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPPasswordModify.java
@@ -503,7 +503,7 @@
    // were provided.
    if (bindDN.isPresent())
    {
      if (! (bindPW.isPresent() || bindPWFile.isPresent()))
      if (!bindPW.isPresent() && !bindPWFile.isPresent())
      {
        LocalizableMessage message = ERR_LDAPPWMOD_BIND_DN_AND_PW_MUST_BE_TOGETHER.get();
@@ -533,8 +533,7 @@
        return CLIENT_SIDE_PARAM_ERROR;
      }
      if (! (authzID.isPresent() &&
             (currentPW.isPresent() || currentPWFile.isPresent())))
      if ((!authzID.isPresent() || (!currentPW.isPresent() && !currentPWFile.isPresent())))
      {
        LocalizableMessage message =
                ERR_LDAPPWMOD_ANON_REQUIRES_AUTHZID_AND_CURRENTPW.get();