Bug 2173965

Summary: [RFE] openldap use systemd-sysusers
Product: [Fedora] Fedora Reporter: Pat Riehecky <riehecky>
Component: openldapAssignee: Simon Pichugin <spichugi>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: bstinson, idm-ds-dev-bugs, idm-ds-qe-bugs, jwboyer, lance, mreynolds, spichugi, vashirov
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sync-to-jira
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: 2095439 Environment:
Last Closed: 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:
Bug Depends On: 2095439    
Bug Blocks:    

Description Pat Riehecky 2023-02-28 14:34:46 UTC
+++ This bug was initially created as a clone of Bug #2095439 +++

Description of problem:
openldap is using static useradd scripts

Version-Release number of selected component (if applicable):
 	openldap-2.4.59-5.el9

How reproducible:
100%

Steps to Reproduce:
1.review %pre
2.
3.

Actual results:
%pre servers

# create ldap user and group
getent group ldap &>/dev/null || groupadd -r -g 55 ldap
getent passwd ldap &>/dev/null || \
        useradd -r -g ldap -u 55 -d %{_sharedstatedir}/ldap -s /sbin/nologin -c "OpenLDAP server" ldap


Expected results:
use of system-sysusers 

Additional info:
https://www.freedesktop.org/software/systemd/man/systemd-sysusers.html
https://fedoraproject.org/wiki/Changes/Adopting_sysusers.d_format

--- Additional comment from Simon Pichugin on 2023-02-28 03:54:20 UTC ---

openldap-servers package is not built on RHEL 9 at all. Hence, there is no need to modify this part of the code in RHEL.