Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1688818 - ldif2db and db2ldif are failing to retrieve the server identifier.
Summary: ldif2db and db2ldif are failing to retrieve the server identifier.
Keywords:
Status: NEW
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: Command Line Utilities
Version: 11.0
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
: ---
Assignee: mreynolds
QA Contact: RHDS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-14 14:13 UTC by Têko Mihinto
Modified: 2019-03-14 14:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Têko Mihinto 2019-03-14 14:13:50 UTC
Description of problem:
Running directly the scripts ldif2db and db2ldif ( without the dsctl wrapper )
causes failures.

Version-Release number of selected component (if applicable):
# rpm -qa | grep ^389-ds
389-ds-base-1.4.1.1-20190312git813030cc7.el8.x86_64
389-ds-base-libs-1.4.1.1-20190312git813030cc7.el8.x86_64
#

How reproducible:
Always.

Steps to Reproduce:
1. Create an RHDS instance
2. Create a suffix and add some entries
3. Run directly the scripts.

Actual results:
The scripts fail with this error message:
+++++++++++++++++++++++++++++++++++++++++
You must supply a valid server instance identifier.  Use -Z to specify instance name
Available instances: <none>
+++++++++++++++++++++++++++++++++++++++++

Eg:
# db2ldif -Z localhost -n Test -a /var/tmp/Test2.ldif
Usage: db2ldif [-Z serverID] {-n backend_instance}* | {-s includesuffix}* [{-x excludesuffix}*] [-a outputfile]
               [-E] [-r] [-u] [-U] [-m] [-1] [-q] [-V] [-v] [-h]
Note: either "-n backend" or "-s includesuffix" is required.
Options:
        -Z serverID       - Server instance identifier
        -n backend        - Backend database name.  Example: userRoot
        -s inclduesuffix  - Suffix to include
        -x                - Suffix to exclude
        -a outputfile     - Name of the exported LDIF file
        -r                - Include replication data
        -E                - Decrypt attributes
        -u                - Do not export the nsUniqueId attribute
        -U                - Do not wrap long lines
        -m                - Do not base64 encode values
        -1                - Do not include version text
        -q                - Quiet mode - suppresses output
        -V                - Verbose output
        -v                - Display version
        -h                - Display usage
You must supply a valid server instance identifier.  Use -Z to specify instance name
Available instances: <none>
#

On can see that there are available instances:
# ls -1 /etc/dirsrv/ | grep slapd
slapd-Teko
slapd-localhost
#

Expected results:
The scripts should work ( unless we're planning to deprecate the possibility
to call them directly ).

Additional info:


Note You need to log in before you can comment on or make changes to this bug.