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

dugan
29.09.2007 da58ad4a57fd29679f7ed4ba159d597ba7225f60
Add pwd policy mods to modifications list and fix exception handling
1 files modified
10 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/core/ModifyOperation.java 10 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/core/ModifyOperation.java
@@ -2361,12 +2361,18 @@
            {
                pwPolicyState.setRequiredChangeTime();
            }
             modifications.addAll(pwPolicyState.getModifications());
            //Apply pwd Policy modifications to modified entry.
            try {
             modifiedEntry.applyModifications(pwPolicyState.getModifications());
            } catch (DirectoryException e) {
                //Should not happen.
                throw new RuntimeException(e);
                if (debugEnabled())
                {
                  debugCaught(DebugLogLevel.ERROR, e);
                }
                setResponseData(e);
                break modifyProcessing;
            }
        }
        else if(pwPolicyState.mustChangePassword())