| | |
| | | import org.opends.server.core.DeleteOperation; |
| | | import org.opends.server.core.DeleteOperationBasis; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.ModifyDNOperation; |
| | | import org.opends.server.core.ModifyDNOperationBasis; |
| | | import org.opends.server.core.ModifyOperation; |
| | | import org.opends.server.core.ModifyOperationBasis; |
| | | import org.opends.server.core.SchemaConfigManager; |
| | |
| | | { |
| | | assertEquals(conn.hasPrivilege(Privilege.JMX_WRITE, null), hasPrivilege); |
| | | |
| | | ModifyDNOperation modifyDNOperation = |
| | | ModifyDNOperationBasis modifyDNOperation = |
| | | conn.processModifyDN(DN.decode("cn=Work Queue,cn=config"), |
| | | RDN.decode("cn=New RDN for Work Queue"), true, |
| | | null); |
| | |
| | | |
| | | |
| | | // Try to rename the entry. |
| | | ModifyDNOperation modifyDNOperation = |
| | | new ModifyDNOperation(conn, conn.nextOperationID(), |
| | | ModifyDNOperationBasis modifyDNOperation = |
| | | new ModifyDNOperationBasis(conn, conn.nextOperationID(), |
| | | conn.nextMessageID(), controls, e.getDN(), |
| | | RDN.decode("cn=Proxy V1 Test"), true, null); |
| | | modifyDNOperation.run(); |
| | |
| | | if (hasProxyPrivilege) |
| | | { |
| | | assertEquals(modifyDNOperation.getResultCode(), ResultCode.SUCCESS); |
| | | newEntryDN = modifyDNOperation.getUpdatedEntry().getDN(); |
| | | newEntryDN = modifyDNOperation.getNewDN(); |
| | | } |
| | | else |
| | | { |
| | |
| | | |
| | | |
| | | // Try to rename the entry. |
| | | ModifyDNOperation modifyDNOperation = |
| | | new ModifyDNOperation(conn, conn.nextOperationID(), |
| | | ModifyDNOperationBasis modifyDNOperation = |
| | | new ModifyDNOperationBasis(conn, conn.nextOperationID(), |
| | | conn.nextMessageID(), controls, e.getDN(), |
| | | RDN.decode("cn=Proxy V2 Test"), true, null); |
| | | modifyDNOperation.run(); |
| | |
| | | { |
| | | assertEquals(modifyDNOperation.getResultCode(), ResultCode.SUCCESS, |
| | | "Unexpected moddn failure for user " + authDN); |
| | | newEntryDN = modifyDNOperation.getUpdatedEntry().getDN(); |
| | | newEntryDN = modifyDNOperation.getNewDN(); |
| | | } |
| | | else |
| | | { |