RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1630513 - Customer requesting -y option for ds-replcheck
Summary: Customer requesting -y option for ds-replcheck
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.5
Hardware: Unspecified
OS: Linux
high
unspecified
Target Milestone: rc
: 7.7
Assignee: mreynolds
QA Contact: RHDS QE
URL:
Whiteboard:
Depends On:
Blocks: 1653469
TreeView+ depends on / blocked
 
Reported: 2018-09-18 19:51 UTC by Dave
Modified: 2020-06-24 14:27 UTC (History)
10 users (show)

Fixed In Version: 389-ds-base-1.3.9.1-5.el7
Doc Type: Bug Fix
Doc Text:
Cause: Trying to read password from a file Consequence: There is no option to do so Fix: Add a "-y" option to specify a password file Result: There si option to use a password file
Clone Of:
: 1653469 (view as bug list)
Environment:
Last Closed: 2019-08-06 12:58:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:2152 0 None None None 2019-08-06 12:59:06 UTC

Description Dave 2018-09-18 19:51:47 UTC
Description of problem:
Customer requesting addition [RFE] of -y option for ds-replcheck, like they are currently using with ldapsearch/ldapmodify/etc

Version-Release number of selected component (if applicable):
389-ds-base-1.3.7.5-25.el7_5.x86_64

How reproducible:
always

Steps to Reproduce:
ds-replcheck -h

Actual results:
no -y option listed

Expected results:
-y file    Read password from file

Additional info:

Comment 2 mreynolds 2018-09-18 21:26:51 UTC
We should also add option to enter it at command line(stdin)

Comment 3 Dave 2018-09-19 13:46:49 UTC
(In reply to mreynolds from comment #2)
> We should also add option to enter it at command line(stdin)

-W & -w options exist, and we currently use these.. I think we are good other than the -y

Comment 5 mreynolds 2018-11-26 21:15:43 UTC
Addressing this in 

https://pagure.io/389-ds-base/issue/50028

Comment 7 bsmejkal 2019-04-03 16:30:46 UTC
Build tested:
389-ds-base-1.3.9.1-4.el7.x86_64


1) # ds-replcheck -h
usage: ds-replcheck [-h] [-v] [-o FILE] [-D BINDDN] [-w BINDPW] [-W]
                    [-y PASS_FILE] [-m MURL] [-r RURL] [-b SUFFIX] [-l LAG]
                    [-c] [-Z CERTDIR] [-i IGNORE] [-p PAGESIZE] [-M MLDIF]
                    [-R RLDIF]

Replication Comparison Tool (v1.4). This script can be used to compare two
replicas to see if they are in sync.

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Verbose output
  -o FILE, --outfile FILE
                        The output file
  -D BINDDN, --binddn BINDDN
                        The Bind DN
  -w BINDPW, --bindpw BINDPW
                        The Bind password
  -W, --prompt          Prompt for the bind password
  -y PASS_FILE, --pass-file PASS_FILE
                        A text file contained the clear text password for the
                        bind dn
  -m MURL, --master_url MURL
                        The LDAP URL for the Master server (REQUIRED)
  -r RURL, --replica_url RURL
                        The LDAP URL for the Replica server (REQUIRED)
  -b SUFFIX, --basedn SUFFIX
                        Replicated suffix (REQUIRED)
  -l LAG, --lagtime LAG
                        The amount of time to ignore inconsistencies (default
                        300 seconds)
  -c, --conflicts       Display verbose conflict information
  -Z CERTDIR, --certdir CERTDIR
                        The certificate database directory for secure
                        connections
  -i IGNORE, --ignore IGNORE
                        Comma separated list of attributes to ignore
  -p PAGESIZE, --pagesize PAGESIZE
                        The paged result grouping size (default 500 entries)
  -M MLDIF, --mldif MLDIF
                        Master LDIF file (offline mode)
  -R RLDIF, --rldif RLDIF
                        Replica LDIF file (offline mode)


2) The -y option is listed but if I try it in command:
# ds-replcheck -D  "cn=Directory Manager"  -y pass.txt -m ldap://server.example.com:389 -r ldap://server2.example.com:389 -b "dc=example,dc=com"

then I get:

-------> Missing required options for online mode!

If I use -w or -W option for password, then the above command works.


Marking as failedQA

Comment 8 bsmejkal 2019-05-02 09:30:37 UTC
Build tested:
389-ds-base-1.3.9.1-5.el7.x86_64

# ds-replcheck -D "cn=Directory Manager" -y pass.txt -m ldap://server.example.com:389 -r ldap://server2.example.com:389 -b "dc=example,dc=com" 
Performing online report...
Connecting to servers...
Gathering Master's RUV...
...
...


The connection is successful.

Marking as VERIFIED.

Comment 10 errata-xmlrpc 2019-08-06 12:58:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2152


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