Bug 2136444

Summary: repl-winsync-agmt create regression in 1.4.3.29-3
Product: Red Hat Enterprise Linux 8 Reporter: Anton Bobrov <abobrov>
Component: 389-ds-baseAssignee: LDAP Maintainers <idm-ds-dev-bugs>
Status: CLOSED DUPLICATE QA Contact: LDAP QA Team <idm-ds-qe-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.6CC: bsmejkal, idm-ds-dev-bugs, mreynolds
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-10-20 12:13:16 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 Anton Bobrov 2022-10-20 10:04:40 UTC
Description of problem:

The 1.4.3.29-3 has a regression where it is impossible to create a winsync replication agreement as it fails with:

Error: 105 - 5 - 53 - Server is unwilling to perform - []

and in the errors log:

ERR - NSMMReplicationPlugin - agmt_new_from_entry: failed to initialise windows replicationagreement "agmt="cn=WinsyncToMSAD" (msad:389)" - replica is not a supplier (may be hub or consumer).

The instance is configured as supplier and the changelog is enabled.

This problem is neither present in 1.4.3.28-7 nor the upstream so this is a regression introduced somewhere between 1.4.3.28-7 and 1.4.3.29-3.


Version-Release number of selected component (if applicable):

1.4.3.29-3


How reproducible:

always


Steps to Reproduce:

1. update to 1.4.3.29-3

2. dscreate an instance

3. enable replication

4. dsconf -D "cn=Directory Manager" ldap://localhost:1389 repl-winsync-agmt  create --suffix="dc=test" --host="msad.example389.com" --port=389 --conn-protocol="LDAP" --bind-dn="cn=Administrator,cn=Users,DC=EXAMPLE389,DC=COM" --bind-passwd="password" --win-subtree="CN=Users,DC=EXAMPLE389,DC=COM" --ds-subtree="dc=test" --win-domain="EXAMPLE389.COM" --init WinsyncToMSAD

Actual results:

Error: 105 - 5 - 53 - Server is unwilling to perform - []


Expected results:

Winsync replication agreement creation should succeed.


Additional info:

My guess is that some repl init code has either been shuffled or broken in this case as agmt_new_from_entry() conditions for nsDSWindowsReplicationAgreement check fail for no apparent reason tho i did not have time to debug it.

Comment 1 mreynolds 2022-10-20 12:13:16 UTC
Duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2094139  Will be fixed in all upcoming RHEL and RHDS releases

*** This bug has been marked as a duplicate of bug 2094139 ***