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

Json option does not work with "dsidm account get-by-dn" command

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

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Minor Minor
    • rhel-10.1
    • rhel-10.0
    • 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

      Running "dsidm account get-by-dn" with json option (-j) does not provide output in the form of JSON object

      Version-Release number of the selected component

      rpm -q 389-ds-base cockpit-389-ds

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

      Steps to reproduce

      Run "dsidm -j account get-by-dn" on an existing account

      Actual results

      # dsidm -j localhost -b dc=example,dc=com account get-by-dn uid=demo_user,ou=people,dc=example,dc=com
      
      dn: uid=demo_user,ou=people,dc=example,dc=com
      cn: Demo User
      displayName: Demo User
      gidNumber: 99998
      homeDirectory: /var/empty
      legalName: Demo User Name
      loginShell: /bin/false
      objectClass: top
      objectClass: nsPerson
      objectClass: nsAccount
      objectClass: nsOrgPerson
      objectClass: posixAccount
      uid: demo_user
      uidNumber: 99998
      

      Expected results

      Output in the form of JSON object

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

                Created:
                Updated:
                Resolved: