Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-86321

dsidm role rename-by-dn does not rename a role

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-10.1
    • None
    • 389-ds-base
    • None
    • 389-ds-base-3.1.3-2.el10
    • No
    • Low
    • rhel-idm-ds
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Description of a problem

      "dsidm role rename-by-dn" command does not rename a role at all

      Version-Release number of the selected component

      389-ds-base-3.0.5-2.el10.x86_64

      Steps to reproduce

      1. Create a role (e.g. managed)
      2. Try to rename a role using "dsidm role rename-by-dn"
      3. Check for original/renamed role
      

      Actual results

      Message about successful rename is produced but with the original dn, and the entry still exists only under the original dn.
      
      # dsidm localhost -b dc=example,dc=com role create-managed
      Enter value for cn : test_role
      Successfully created test_role
      
      # dsidm localhost -b dc=example,dc=com role list
      test_role
      
      # dsidm localhost -b dc=example,dc=com role get test_role
      dn: cn=test_role,dc=example,dc=com
      cn: test_role
      description: test
      objectClass: nsSimpleRoleDefinition
      objectClass: nsManagedRoleDefinition
      objectClass: nsRoleDefinition
      objectClass: ldapSubEntry
      objectClass: top
      
      
      # dsidm localhost -b dc=example,dc=com role rename-by-dn cn=test_role,dc=example,dc=com cn=renamed,dc=example,dc=com
      Successfully renamed to cn=test_role,dc=example,dc=com 
      
      # dsidm localhost -b dc=example,dc=com role list
      test_role
      
      # dsidm localhost -b dc=example,dc=com role get test_role
      dn: cn=test_role,dc=example,dc=com
      cn: test_role
      description: test
      objectClass: nsSimpleRoleDefinition
      objectClass: nsManagedRoleDefinition
      objectClass: nsRoleDefinition
      objectClass: ldapSubEntry
      objectClass: top
      
      # dsidm localhost -b dc=example,dc=com role get-by-dn cn=renamed,dc=example,dc=com
      Error: No such object

      Expected results

      Role should have new cn and dn.

      Additional information

      Output is the same when using the keep-old-rdn option - no changes are made.

              idm-ds-dev-bugs IdM DS Dev
              lryznaro@redhat.com Lenka Doudova
              IdM DS Dev IdM DS Dev
              IdM DS QE IdM DS QE
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: