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

gbellato
11.38.2008 fbf4b7ed95646469009315c37a05a005d0e29e7f
Issue : 3006 : replication of userPassword does not work

Fix a case when the modify operation on userPassword attribute is not
applied on the entry when replayed by the replication.

1 files modified
8 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendModifyOperation.java 8 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendModifyOperation.java
@@ -1293,10 +1293,13 @@
      // skipped for synchronization operations.
      boolean isPassword =
              t.equals(pwPolicyState.getPolicy().getPasswordAttribute());
      if (isPassword && (!(isSynchronizationOperation())))
      if (isPassword)
      {
        if (!isSynchronizationOperation())
      {
        // If the attribute contains any options, then reject it.  Passwords
        // will not be allowed to have options. Skipped for internal operations.
          // will not be allowed to have options.
          // Skipped for internal operations.
        if(! isInternalOperation())
        {
          if (a.hasOptions())
@@ -1362,6 +1365,7 @@
                            String.valueOf(m.getModificationType()),
                            a.getName()));
        }
        }
      switch (m.getModificationType())
      {