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 2113002

Summary: ipa-replica-manage --connect --winsync fails with traceback.
Product: Red Hat Enterprise Linux 8 Reporter: Sudhir Menon <sumenon>
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.7CC: bsmejkal, gkimetto, ldap-maint, mreynolds, rcritten, tscherf
Target Milestone: rcKeywords: Regression, TestCaseProvided, Triaged
Target Release: 8.7Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sync-to-jira
Fixed In Version: 389-ds-base-1.4.3.30-6.module+el8.7.0+16373+1a59bba2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 09:38:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sudhir Menon 2022-08-01 16:40:00 UTC
Description of problem: ipa-replica-manage --connect --winsync fails with traceback.

Version-Release number of selected component (if applicable):
ipa-server-4.9.10-4.module+el8.7.0+15926+daa9f08b.x86_64
389-ds-base-1.4.3.30-3.module+el8.7.0+15600+347cafc6.x86_64
389-ds-base-libs-1.4.3.30-3.module+el8.7.0+15600+347cafc6.x86_64

How reproducible:
Always

Steps to Reproduce:
ipa-replica-manage', 'connect', '--winsync', '--binddn', 'cn=Administrator,cn=users,dc=ad-8a12,dc=test', '--bindpw', 'Secret123', '--password', 'Secret123', '--cacert', '/tmp/tmp.fQQ4166v8S', '--passsync', 'dummy', 'root-dc-8a12.ad-8a12.test', '-v'

Actual results:
Traceback (most recent call last):
File "/usr/sbin/ipa-replica-manage", line 1616, in <module>
main(options, args)
File "/usr/sbin/ipa-replica-manage", line 1573, in main
add_link(realm, replica1, replica2, dirman_passwd, options)
File "/usr/sbin/ipa-replica-manage", line 1149, in add_link
options.cacert)
File "/usr/lib/python3.6/site-packages/ipaserver/install/replication.py", line 1352, in setup_winsync_replication
iswinsync=True, win_subtree=ad_subtree)
File "/usr/lib/python3.6/site-packages/ipaserver/install/replication.py", line 889, in setup_agreement
a_conn.add_entry(entry)
File "/usr/lib/python3.6/site-packages/ipapython/ipaldap.py", line 1657, in add_entry
self.conn.add_s(str(entry.dn), list(attrs.items()))
File "/usr/lib64/python3.6/contextlib.py", line 99, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3.6/site-packages/ipapython/ipaldap.py", line 1147, in error_handler
raise errors.DatabaseError(desc=desc, info=info)
ipalib.errors.DatabaseError: Server is unwilling to perform: 
Unexpected error: Server is unwilling to perform: 
Exit code: 1
stderr: ipa: INFO: AD Suffix is: DC=ad-8a12,DC=test

Expected results:
ipa-replica-manage connect works without any error.

Additional info:

Comment 2 Florence Blanc-Renaud 2022-08-01 17:05:41 UTC
Moving to 389-ds component. The issue looks similar to https://github.com/389ds/389-ds-base/issues/5079 which was fixed on 389-ds master branch [1], 389-ds 2.0 branch [2] and 389-ds 1.4.4 branch [3]. It looks like a backport is required to 1.4.3 as well (for RHEL 8.7).

[1] https://github.com/389ds/389-ds-base/commit/5b4e6101a00f4749c918f7f8f3fcc78c0ff6e8b1
[2] https://github.com/389ds/389-ds-base/commit/5ed05508cf507036ef50eeadd034dbacef2a6001
[3] https://github.com/389ds/389-ds-base/commit/7518d0468833d40446810d9f0c221231e91cf79b

Comment 3 mreynolds 2022-08-01 17:33:02 UTC
Cherry picked to 1.4.3 branch (RHEL 8.x)

Comment 9 errata-xmlrpc 2022-11-08 09:38:12 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 (389-ds:1.4 bug fix and enhancement update), 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-2022:7552