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 1843162 - Creating Replication Manager fails if uid=repman is used
Summary: Creating Replication Manager fails if uid=repman is used
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: 389-ds-base
Version: 8.1
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: 8.0
Assignee: mreynolds
QA Contact: RHDS QE
URL:
Whiteboard: sync-to-jira
Depends On: 1654226
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-02 17:57 UTC by mreynolds
Modified: 2020-11-04 03:09 UTC (History)
8 users (show)

Fixed In Version: 389-ds-1.4-8030020200605214214.618f7055
Doc Type: Bug Fix
Doc Text:
Cause: Trying to create a replication manager using the attribute "uid" as the RDN of the entry Consequence: The manager entry fails to be added. Fix: Allow uid as the RDN of the replication manager entry Result: You can use "cn" or "uid" for the replication manager entry
Clone Of: 1654226
Environment:
Last Closed: 2020-11-04 03:08:03 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2020:4695 0 None None None 2020-11-04 03:08:18 UTC

Description mreynolds 2020-06-02 17:57:32 UTC
+++ This bug was initially created as a clone of Bug #1654226 +++

Description of problem:
Creating Replication Manager from webui fails if uid=repman is used

While creating a replication agreement using webui, If uid=repman is choosed, It fails with error.

[28/Nov/2018:04:44:13.449798112 -0500] conn=70 op=8 ADD dn="uid=repman,cn=config"
[28/Nov/2018:04:44:13.478054359 -0500] conn=70 op=8 RESULT err=65 tag=105 nentries=0 etime=0.0028324086 - attribute "uid" not allowed

cn=repman,cn=config works correctly.

This used to work for older version & lot of customers uses uid=<name> syntax.


Version-Release number of selected component (if applicable):
cockpit-389-ds-1.4.0.19-2.module+el8+1+36e60e1d.noarch
389-ds-base-1.4.0.19-2.module+el8+1+36e60e1d.x86_64
389-ds-base-libs-1.4.0.19-2.module+el8+1+36e60e1d.x86_64


How reproducible:
100%

Steps to Reproduce:
Login to Cockpit Webui
Select Instance
Go to replication
click on Configuration
Add replication manager as uid=<name>


Actual results:
It should work

Expected results:
It fails with error=65, Adding screenshot for more clarity

Additional info:
This was legacy configuration which used to work previously Lot of existing environment uses same convention. It should work for both uid=name & cn=name.

--- Additional comment from Arpit Tolani on 2018-11-28 09:59:31 UTC ---



--- Additional comment from  on 2018-11-28 20:47:38 UTC ---

Yeah lib389 limits this to just cn for replication managers.  I know it will not be easy to change it because of how it's all laid out, but it should be possible.

--- Additional comment from  on 2020-05-26 12:46:31 UTC ---

Upstream ticket: 

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

Comment 3 Viktor Ashirov 2020-08-07 11:57:20 UTC
Build tested: 389-ds-base-1.4.3.8-5.module+el8.3.0+7569+08175a8a.x86_64

# dsconf -D "cn=Directory Manager" -w password server-rhel8 replication enable --suffix="dc=example,dc=com" --role="master" --replica-id=1 --bind-dn="uid=repman,cn=config" --bind-passwd="password"
Replication successfully enabled for "dc=example,dc=com"

# ldapsearch -xLLL -D "cn=Directory Manager" -w password -b cn=config 'uid=repman'
dn: uid=repman,cn=config
objectClass: top
objectClass: inetUser
objectClass: netscapeServer
objectClass: nsAccount
cn: repman
uid: repman
userPassword:: e1BCS0RGMl9TSEEyNTZ9QUFBSUFGSlhtaCthOTl1UXUvd0dsak5RK1ZIUjRwUkl
 ZRW51c2NyQXRKVUwza2hKOTRSL0xyUTVZWjk4ZXd6MHhVSE54amZJTytpblNlU0hIZWtWNmZ2a01S
 eFBLTjRyMFdzcGRwMlcxcWJTOUVPbUMvdDdrUVF1dTdJU1NFTFJRRGVDUkhwSkVyWFVGVG5aK1JwN
 G1UcE83eFQxUDBpSjlRR0Jwak1Sc0E3U01NdEZhekZrUjZpSUVhMmNQUEN6QUw1b3dpY01aUnZGbX
 MvV3I1dGlHRzRFNTlrcW1IZU9vSzZkVllqMnJ1TmRKOStJd3cvNlVHdGw0UmlYZ09yVCtsb3FaaHp
 TcVJaVmdGMTU0Z29COFNHQ0ZtRUR4RDBYcTdwMmcrbWdxdi9mYkgwWFZnTXdaMVliWGU5cU9oQ3ov
 TlllUGF5Si9mN2h3VEFGRWtuTXVidEZwQ05jeW9lbzg3UFB0NGh6K2N6WmNJMEs2SzJGSklsRjZQS
 ElwWS81WGNHVUtJd1cxelpkR0hLWGlYSU5ObWloY2tnR0VYUmpoQXB1UWNFK2U3K2dLVEh5


Entry is created successfully, marking as VERIFIED.

Comment 6 errata-xmlrpc 2020-11-04 03:08:03 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/RHEA-2020:4695


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