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

neil_a_wilson
19.54.2006 70b46267833ddc5eb995aaa08ab13736e59cb18d
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
opendj-sdk/opends/src/server/org/opends/server/extensions/PasswordModifyExtendedOperation.java 8 ●●●●● patch | view | raw | blame | history
opendj-sdk/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)
          {