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

neil_a_wilson
20.53.2006 2c9892b85301d530ff8425669f9d5c7d4b6eadaa
opends/src/server/org/opends/server/extensions/PasswordModifyExtendedOperation.java
@@ -460,7 +460,7 @@
      // Determine whether the user is changing his own password or if it's an
      // administrative reset.
      boolean selfChange = ((userIdentity == null) ||
      boolean selfChange = ((userIdentity == null) || (requestorDN == null) ||
                            userDN.equals(requestorDN));
@@ -943,7 +943,8 @@
      // password" flag in the client connection.  Note that we're using the
      // authentication DN rather than the authorization DN in this case to
      // avoid mistakenly clearing the flag for the wrong user.
      if (selfChange && (authInfo.getAuthenticationDN().equals(userDN)))
      if (selfChange && (authInfo.getAuthenticationDN() != null) &&
          (authInfo.getAuthenticationDN().equals(userDN)))
      {
        operation.getClientConnection().setMustChangePassword(false);
      }