[OPENDJ-3848] dsconfig print equivalent command line does not display connection parameters Created: 10/Mar/17  Updated: 08/Nov/19  Resolved: 11/Mar/17

Status: Done
Project: OpenDJ
Component/s: None
Affects Version/s: 4.0.0
Fix Version/s: 4.0.0

Type: Bug Priority: Minor
Reporter: Gaetan Boismal [X] (Inactive) Assignee: Gaetan Boismal [X] (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Dev Assignee: Gaetan Boismal [X] (Inactive)

 Description   

dsconfig tool used with either the displayCommand or the commandFilePath option prints equivalent non interactive command line to perform a configuration action.
At the moment the printed command line does not contain the connection argument such as host name, bind DN, port...

Sample below presents the output of a $ ./dsconfig --discplayCommand after modifying a backend index:

[...]
The Backend Index was modified successfully

The equivalent non-interactive command-line is:
dsconfig set-backend-index-prop \
          --backend-name userRoot \
          --index-name name \
          --set confidentiality-enabled:false \
          --no-prompt

The equivalent non-interactive command-line should be:

dsconfig set-backend-index-prop \
          --backend-name userRoot \
          --index-name name \
          --set confidentiality-enabled:false \
          --hostname gaetan-laptop \
          --port 4444 \
          --bindDn cn=directory\ manager \
          --bindPassword ****** \
          --no-prompt



 Comments   
Comment by Ludovic Poitou [ 10/Mar/17 ]

Is that a regression ?
It's also missing the X (-trustAll) or the TrustStore params.

Comment by Gaetan Boismal [X] (Inactive) [ 10/Mar/17 ]

I've quickly tested 3.5 version and the bug seems to impact it as well.

Comment by Matthew Swift [ 10/Mar/17 ]

In addition, should we just enable this option by default in interactive mode?

Comment by Matthew Swift [ 07/Nov/19 ]

Moved to closed state because the fixVersion has already been released.

Generated at Mon Nov 23 16:15:02 UTC 2020 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.