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 1872930 - dscreate: Not possible to bind to a unix domain socket
Summary: dscreate: Not possible to bind to a unix domain socket
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: 389-ds-base
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: mreynolds
QA Contact: RHDS QE
URL:
Whiteboard: sync-to-jira
: 1872910 1872915 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-27 00:02 UTC by Graham Leggett
Modified: 2021-05-18 15:45 UTC (History)
5 users (show)

Fixed In Version: 389-ds-devel-1.4-8040020201105165416.866effaa
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:45:26 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 4306 0 None closed dscreate: Not possible to bind to a unix domain socket 2021-01-28 09:22:26 UTC

Description Graham Leggett 2020-08-27 00:02:41 UTC
Description of problem:

While 389ds can bind to a unix domain socket (ldapi:), the dscreate tool cannot configure 389ds to bind to a unix domain socket.

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

389-ds-base-1.4.2.4-8.module_el8.2.0+366+71e3276f.x86_64

How reproducible:

Always

Steps to Reproduce:
1. Try to get dscreate to configure an LDAP server bound to a unix domain socket.
2.
3.

Actual results:

Not possible.

Expected results:

Possible and easy to achieve.

Additional info:

It looks like dscreate is only able to create one specific type of LDAP server - a server that binds to all interfaces using TLS and a self signed certificate. All other options, including give me a bare bones server that I can suitably configure are not possible or don't work.

Comment 1 mreynolds 2020-08-27 13:17:26 UTC
You can use LDAPI, LDAPS, LDAP protocols with any client tool to contact the server.  There is no requirement, unless you configure it, to only allow TLS.  

Are you trying to "only" allow LDAPI connections?   There is no way to do that as of today, but we could change this bug into a RFE.

Anyway, please clarify what the exact problem is and how to reproduce it.

Comment 2 Graham Leggett 2020-08-27 15:23:05 UTC
While 389ds might do LDAPI, LDAPS and LDAP, dscreate is only aple to create LDAPS. It is not possible to tell dscreate to bind a server to LDAPI, thus this ticket.

The exact problem is that dscreate does not allow you to configure LDAPI. To reproduce the problem, try to use dscreate to configure an LDAPI server.

Comment 3 mreynolds 2020-08-31 12:34:09 UTC
(In reply to Graham Leggett from comment #2)
> While 389ds might do LDAPI, LDAPS and LDAP, dscreate is only aple to create
> LDAPS. It is not possible to tell dscreate to bind a server to LDAPI, thus
> this ticket.
> 
> The exact problem is that dscreate does not allow you to configure LDAPI. To
> reproduce the problem, try to use dscreate to configure an LDAPI server.

Okay I have a working patch where the installer will use LDAPI to bootstrap the server config.  I'll be sending that patch out for review later today.

Comment 4 mreynolds 2020-08-31 12:35:56 UTC
*** Bug 1872910 has been marked as a duplicate of this bug. ***

Comment 5 mreynolds 2020-08-31 12:37:19 UTC
*** Bug 1872915 has been marked as a duplicate of this bug. ***

Comment 6 mreynolds 2020-08-31 12:38:41 UTC
Upstream ticket:
https://pagure.io/389-ds-base/issue/51253

Comment 7 mreynolds 2020-09-01 15:03:00 UTC
Fixed upstream

Comment 9 sgouvern 2020-11-13 10:55:17 UTC
Per gating tests results for 389-ds-1.4-8040020201112160023.866effaa /389-ds-base-1.4.3.16-1.module+el8.4.0+8740+d5ec8778 : dirsrvtests/tests/suites/basic/basic_test.py are PASSED
-> marking as Verified:tested

Comment 13 sgouvern 2020-11-16 15:31:04 UTC
verified:tested (see comment 9) with build https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1383684 
-> marking as VERIFIED

Comment 15 errata-xmlrpc 2021-05-18 15:45:26 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-2021:1835


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