Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1316741

Summary: ldctl should support -H with ldap uris
Product: Red Hat Enterprise Linux 7 Reporter: Noriko Hosoi <nhosoi>
Component: 389-ds-baseAssignee: wibrown <wibrown>
Status: CLOSED ERRATA QA Contact: Viktor Ashirov <vashirov>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: kbanerje, nkinder, rmeggins, wibrown
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.3.5.5-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-03 20:40:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Noriko Hosoi 2016-03-11 00:34:47 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/389/ticket/48754

ldctl currently only support -h for hostname. It should be able to take -H and ldap uris for ldaps, ldapi etc.

Comment 2 Kamlesh 2016-07-20 12:54:45 UTC
Bug Verified 

Steps Perform 

[root@test dirsrv]# ldclt  -D "cn=Directory manager" -w Secret123 -f cn=XXXXXX -b "ou=people,dc=example,dc=org" -e add,person,incr,noloop,commoncounter -r1 -R5 -I 68 -I 32 -H ldap://localhost:389
ldclt version 4.23
ldclt[7683]: Starting at Wed Jul 20 13:44:31 2016

ldclt[7683]: T007: Hit top incremental value
ldclt[7683]: T007: thread is dead.
ldclt[7683]: T006: Hit top incremental value
ldclt[7683]: T006: thread is dead.
ldclt[7683]: T002: Hit top incremental value
ldclt[7683]: T002: thread is dead.
ldclt[7683]: T008: Hit top incremental value
ldclt[7683]: T008: thread is dead.
ldclt[7683]: T009: Hit top incremental value
ldclt[7683]: T009: thread is dead.
ldclt[7683]: T000: Hit top incremental value
ldclt[7683]: T000: thread is dead.
ldclt[7683]: T001: Hit top incremental value
ldclt[7683]: T001: thread is dead.
ldclt[7683]: T003: Hit top incremental value
ldclt[7683]: T003: thread is dead.
ldclt[7683]: T004: Hit top incremental value
ldclt[7683]: T004: thread is dead.
ldclt[7683]: T005: Hit top incremental value
ldclt[7683]: T005: thread is dead.
ldclt[7683]: Average rate:    0.50/thr  (   0.50/sec), total:      5
ldclt[7683]: Average rate:    0.00/thr  (   0.00/sec), total:      0
ldclt[7683]: All threads are dead - exit.
ldclt[7683]: Global average rate:    0.50/thr  (  0.25/sec), total:      5
ldclt[7683]: Global number times "no activity" reports: never
ldclt[7683]: Global number of dead threads: 10
ldclt[7683]: Global no error occurs during this session.
ldclt[7683]: Ending at Wed Jul 20 13:44:51 2016
ldclt[7683]: Exit status 0 - No problem during execution.

------------------------------------------------------------------------

[root@test dirsrv]# ldclt  -D "cn=Directory manager" -w Secret123 -f cn=XXXXXX -b "ou=people,dc=example,dc=org" -e delete,person,incr,noloop,commoncounter -r1 -R5 -I 68 -I 32 -H ldaps://localhost:636
ldclt version 4.23
ldclt[7712]: Starting at Wed Jul 20 13:46:48 2016

ldclt[7712]: T003: Hit top incremental value
ldclt[7712]: T003: thread is dead.
ldclt[7712]: T001: Hit top incremental value
ldclt[7712]: T001: thread is dead.
ldclt[7712]: T005: Hit top incremental value
ldclt[7712]: T005: thread is dead.
ldclt[7712]: T008: Hit top incremental value
ldclt[7712]: T008: thread is dead.
ldclt[7712]: T009: Hit top incremental value
ldclt[7712]: T009: thread is dead.
ldclt[7712]: T007: Hit top incremental value
ldclt[7712]: T007: thread is dead.
ldclt[7712]: T006: Hit top incremental value
ldclt[7712]: T006: thread is dead.
ldclt[7712]: T002: Hit top incremental value
ldclt[7712]: T002: thread is dead.
ldclt[7712]: T000: Hit top incremental value
ldclt[7712]: T000: thread is dead.
ldclt[7712]: T004: Hit top incremental value
ldclt[7712]: T004: thread is dead.
ldclt[7712]: Average rate:    0.50/thr  (   0.50/sec), total:      5
ldclt[7712]: Average rate:    0.00/thr  (   0.00/sec), total:      0
ldclt[7712]: All threads are dead - exit.
ldclt[7712]: Global average rate:    0.50/thr  (  0.25/sec), total:      5
ldclt[7712]: Global number times "no activity" reports: never
ldclt[7712]: Global number of dead threads: 10
ldclt[7712]: Global no error occurs during this session.
ldclt[7712]: Ending at Wed Jul 20 13:47:08 2016
ldclt[7712]: Exit status 0 - No problem during execution

----------------------------------------------------------------------

[root@test dirsrv]# ldclt  -D "cn=Directory manager" -w Secret123 -f cn=XXXXXX -b "ou=people,dc=example,dc=org" -e add,person,incr,noloop,commoncounter -r1 -R5 -I 68 -I 32 -H ldapi://%2Fvar%2Frun%2Fdirsrv%2Fslapd-RootCA.soket
ldclt version 4.23
ldclt[7733]: Starting at Wed Jul 20 13:47:48 2016

ldclt[7733]: T006: Hit top incremental value
ldclt[7733]: T006: thread is dead.
ldclt[7733]: T002: Hit top incremental value
ldclt[7733]: T002: thread is dead.
ldclt[7733]: T007: Hit top incremental value
ldclt[7733]: T007: thread is dead.
ldclt[7733]: T009: Hit top incremental value
ldclt[7733]: T009: thread is dead.
ldclt[7733]: T008: Hit top incremental value
ldclt[7733]: T008: thread is dead.
ldclt[7733]: T004: Hit top incremental value
ldclt[7733]: T004: thread is dead.
ldclt[7733]: T001: Hit top incremental value
ldclt[7733]: T001: thread is dead.
ldclt[7733]: T005: Hit top incremental value
ldclt[7733]: T005: thread is dead.
ldclt[7733]: T003: Hit top incremental value
ldclt[7733]: T003: thread is dead.
ldclt[7733]: T000: Hit top incremental value
ldclt[7733]: T000: thread is dead.
ldclt[7733]: Average rate:    0.50/thr  (   0.50/sec), total:      5
ldclt[7733]: Average rate:    0.00/thr  (   0.00/sec), total:      0
ldclt[7733]: All threads are dead - exit.
ldclt[7733]: Global average rate:    0.50/thr  (  0.25/sec), total:      5
ldclt[7733]: Global number times "no activity" reports: never
ldclt[7733]: Global number of dead threads: 10
ldclt[7733]: Global no error occurs during this session.
ldclt[7733]: Ending at Wed Jul 20 13:48:08 2016
ldclt[7733]: Exit status 0 - No problem during execution
---------------------------------------------------------------------------
[root@test dirsrv]# ldclt  -D "cn=Directory manager" -w Secret123 -f cn=XXXXXX -b "ou=people,dc=example,dc=org" -e delete,person,incr,noloop,commoncounter -r1 -R5 -I 68 -I 32 -H ldapi://%2Fvar%2Frun%2Fdirsrv%2Fslapd-RootCA.soket -h test.run.co -p 123
ldclt version 4.23
ldclt[8114]: Starting at Wed Jul 20 14:18:08 2016

ldclt[8114]: T004: Hit top incremental value
ldclt[8114]: T004: thread is dead.
ldclt[8114]: T008: Hit top incremental value
ldclt[8114]: T008: thread is dead.
ldclt[8114]: T007: Hit top incremental value
ldclt[8114]: T007: thread is dead.
ldclt[8114]: T005: Hit top incremental value
ldclt[8114]: T005: thread is dead.
ldclt[8114]: T009: Hit top incremental value
ldclt[8114]: T009: thread is dead.
ldclt[8114]: T002: Hit top incremental value
ldclt[8114]: T002: thread is dead.
ldclt[8114]: T001: Hit top incremental value
ldclt[8114]: T001: thread is dead.
ldclt[8114]: T000: Hit top incremental value
ldclt[8114]: T000: thread is dead.
ldclt[8114]: T003: Hit top incremental value
ldclt[8114]: T003: thread is dead.
ldclt[8114]: T006: Hit top incremental value
ldclt[8114]: T006: thread is dead.
ldclt[8114]: Average rate:    0.50/thr  (   0.50/sec), total:      5
ldclt[8114]: Average rate:    0.00/thr  (   0.00/sec), total:      0
ldclt[8114]: All threads are dead - exit.
ldclt[8114]: Global average rate:    0.50/thr  (  0.25/sec), total:      5
ldclt[8114]: Global number times "no activity" reports: never
ldclt[8114]: Global number of dead threads: 10
ldclt[8114]: Global no error occurs during this session.
ldclt[8114]: Ending at Wed Jul 20 14:18:28 2016
ldclt[8114]: Exit status 0 - No problem during execution

----------------------------------------------------------------------------

[root@test dirsrv]# ldclt  -D "cn=Directory manager" -w Secret123 -f cn=XXXXXX -b "ou=people,dc=example,dc=org" -e add,person,incr,noloop,commoncounter -r1 -R5 -I 68 -I 32 -H ldaps://localhost:636 -h test.run.in
ldclt version 4.23
ldclt[8177]: Starting at Wed Jul 20 14:20:39 2016

ldclt[8177]: T001: Hit top incremental value
ldclt[8177]: T001: thread is dead.
ldclt[8177]: T002: Hit top incremental value
ldclt[8177]: T002: thread is dead.
ldclt[8177]: T007: Hit top incremental value
ldclt[8177]: T007: thread is dead.
ldclt[8177]: T008: Hit top incremental value
ldclt[8177]: T008: thread is dead.
ldclt[8177]: T009: Hit top incremental value
ldclt[8177]: T009: thread is dead.
ldclt[8177]: T000: Hit top incremental value
ldclt[8177]: T000: thread is dead.
ldclt[8177]: T003: Hit top incremental value
ldclt[8177]: T003: thread is dead.
ldclt[8177]: T006: Hit top incremental value
ldclt[8177]: T006: thread is dead.
ldclt[8177]: T005: Hit top incremental value
ldclt[8177]: T005: thread is dead.
ldclt[8177]: T004: Hit top incremental value
ldclt[8177]: T004: thread is dead.
ldclt[8177]: Average rate:    0.50/thr  (   0.50/sec), total:      5
ldclt[8177]: Average rate:    0.00/thr  (   0.00/sec), total:      0
ldclt[8177]: All threads are dead - exit.
ldclt[8177]: Global average rate:    0.50/thr  (  0.25/sec), total:      5
ldclt[8177]: Global number times "no activity" reports: never
ldclt[8177]: Global number of dead threads: 10
ldclt[8177]: Global no error occurs during this session.
ldclt[8177]: Ending at Wed Jul 20 14:20:59 2016
ldclt[8177]: Exit status 0 - No problem during execution.
------------------------------------------------------------------------------

[root@test dirsrv]# ldclt  -D "cn=Directory manager" -w Secret123 -f cn=XXXXXX -b "ou=people,dc=example,dc=org" -e delete,person,incr,noloop,commoncounter -r1 -R5 -I 68 -I 32 -H ldaps://localhost:636 -p789
ldclt version 4.23
ldclt[8232]: Starting at Wed Jul 20 14:21:55 2016

ldclt[8232]: T003: Hit top incremental value
ldclt[8232]: T003: thread is dead.
ldclt[8232]: T002: Hit top incremental value
ldclt[8232]: T002: thread is dead.
ldclt[8232]: T006: Hit top incremental value
ldclt[8232]: T006: thread is dead.
ldclt[8232]: T008: Hit top incremental value
ldclt[8232]: T008: thread is dead.
ldclt[8232]: T009: Hit top incremental value
ldclt[8232]: T009: thread is dead.
ldclt[8232]: T007: Hit top incremental value
ldclt[8232]: T007: thread is dead.
ldclt[8232]: T005: Hit top incremental value
ldclt[8232]: T005: thread is dead.
ldclt[8232]: T004: Hit top incremental value
ldclt[8232]: T004: thread is dead.
ldclt[8232]: T001: Hit top incremental value
ldclt[8232]: T001: thread is dead.
ldclt[8232]: T000: Hit top incremental value
ldclt[8232]: T000: thread is dead.
ldclt[8232]: Average rate:    0.50/thr  (   0.50/sec), total:      5
ldclt[8232]: Average rate:    0.00/thr  (   0.00/sec), total:      0
ldclt[8232]: All threads are dead - exit.
ldclt[8232]: Global average rate:    0.50/thr  (  0.25/sec), total:      5
ldclt[8232]: Global number times "no activity" reports: never
ldclt[8232]: Global number of dead threads: 10
ldclt[8232]: Global no error occurs during this session.
ldclt[8232]: Ending at Wed Jul 20 14:22:15 2016
ldclt[8232]: Exit status 0 - No problem during execution.

-------------------------------------------------------------------------------

Comment 4 errata-xmlrpc 2016-11-03 20:40:30 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://rhn.redhat.com/errata/RHSA-2016-2594.html