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

david_page
03.11.2007 1ec4225177e7054586a7ca1842809b8055c552d9
Issue [1247] Password policy check and password encoding performed for internal and synchronization operations.

The password policy validation is performed even for internal and synchronization operations. This change replaces a condition that would never evaluate true with a condition identical to that used in the LDAPModify operation.
1 files modified
6 ■■■■ changed files
opends/src/server/org/opends/server/core/AddOperation.java 6 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/core/AddOperation.java
@@ -1352,12 +1352,12 @@
          break addProcessing;
        }
        // Check to see if the entry contains one or more passwords and if they
        // If it's not an internal or synchronization operation, then check
        // to see if the entry contains one or more passwords and if they
        // are valid in accordance with the password policies associated with
        // the user.  Also perform any encoding that might be required by
        // password storage schemes.
        if ((! isInternalOperation()) || (! isSynchronizationOperation()))
        if (! (isInternalOperation() || isSynchronizationOperation()))
        {
          // FIXME -- We need to check to see if the password policy subentry
          //          might be specified virtually rather than as a real