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

"dsconf config replace" should handle multivalued attributes.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.6
    • rhel-9.4
    • 389-ds-base
    • None
    • No
    • Moderate
    • rhel-sst-idm-ds
    • 0
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • None
    • None
    • Known Issue
    • Hide
      .`dsconf config replace` cannot handle multivalued attributes

      Currently, the `dsconf config replace` command cannot set several values to a multivalued attribute, such as `nsslapd-haproxy-trusted-ip`.

      To work around this issue, use the `ldapmodify` utility. For example, if you want to set several trusted IP addresses, run the following command:


      [subs="+quotes"]
      ....
      # *ldapmodify -D "cn=Directory Manager" -W -H ldap://server.example.com -x << EOF*

      *dn: cn=config*
      *changetype: modify*
      *add: nsslapd-haproxy-trusted-ip*
      *nsslapd-haproxy-trusted-ip: _192.168.0.1_*
      *nsslapd-haproxy-trusted-ip: _192.168.0.2_*
      *nsslapd-haproxy-trusted-ip: _192.168.0.3_*
      *EOF*
      ....
      Show
      .`dsconf config replace` cannot handle multivalued attributes Currently, the `dsconf config replace` command cannot set several values to a multivalued attribute, such as `nsslapd-haproxy-trusted-ip`. To work around this issue, use the `ldapmodify` utility. For example, if you want to set several trusted IP addresses, run the following command: [subs="+quotes"] .... # *ldapmodify -D "cn=Directory Manager" -W -H ldap://server.example.com -x << EOF* *dn: cn=config* *changetype: modify* *add: nsslapd-haproxy-trusted-ip* *nsslapd-haproxy-trusted-ip: _192.168.0.1_* *nsslapd-haproxy-trusted-ip: _192.168.0.2_* *nsslapd-haproxy-trusted-ip: _192.168.0.3_* *EOF* ....
    • Done
    • None

      Description of a problem

      It would be useful if the "dsconf config replace" command can be used to replace current value(s) with new ones.
      For instance, to replace the existing values of "nsslapd-haproxy-trusted-ip":
      
      dsconf -D "cn=Directory Manager" ldap://<HOST>:<PORT> config replace nsslapd-haproxy-trusted-ip=<NEW_IP_ADDRESS_1> nsslapd-haproxy-trusted-ip=<NEW_IP_ADDRESS_2> nsslapd-haproxy-trusted-ip=<NEW_IP_ADDRESS_3> 
      

      Version-Release number of the selected component

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

       

      Browser (if applicable)

       

      Steps to reproduce

      1.
      2.
      3.
      

      Actual results

       

      Expected results

       

      Additional information

       

              spichugi@redhat.com Simon Pichugin
              rhn-support-tmihinto Têko Mihinto
              IdM DS Dev IdM DS Dev
              IdM DS QE IdM DS QE
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: