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

dsidm role get-by-dn doesn't work properly with -j option

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 get-by-dn" doesn't provide proper output when run with json option specified

      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. Run "dsidm role get-by-dn" with -j option specified
      3. Check the output
      

      Actual results

      Returns plain output, identical to the output of command without json option:
      
      # dsidm -j localhost -b dc=example,dc=com role get-by-dn cn=test_role,dc=example,dc=comdn: cn=test_role,dc=example,dc=com
      cn: test_role
      objectClass: nsSimpleRoleDefinition
      objectClass: nsManagedRoleDefinition
      objectClass: nsRoleDefinition
      objectClass: ldapSubEntry
      objectClass: top

      Expected results

      Should return result as a JSON object

              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: