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

neil_a_wilson
19.54.2006 5e8e1e8aaab403ea565da6e82222de36060f286f
Update the password modify extended operation to ensure that if an
authorization ID is provided using the "dn:" form and an alternate root bind DN
(e.g., "cn=Directory Manager" instead of
"cn=Directory Manager,cn=Root DNs,cn=config") the server will properly map it
to the actual DN for the user.

OpenDS Issue Number: 677
1 files modified
8 ■■■■■ changed files
opends/src/server/org/opends/server/extensions/PasswordModifyExtendedOperation.java 8 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/extensions/PasswordModifyExtendedOperation.java
@@ -357,6 +357,14 @@
            return;
          }
          // If the provided DN is an alternate DN for a root user, then replace
          // it with the actual root DN.
          DN actualRootDN = DirectoryServer.getActualRootBindDN(userDN);
          if (actualRootDN != null)
          {
            userDN = actualRootDN;
          }
          userEntry = getEntryByDN(operation, userDN);
          if (userEntry == null)
          {