Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-3926

useradd: invalid user ID '389:389': installing 389-ds-base in container fails to create the dirsrv user

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhel-9.3.0
    • rhel-9.3.0
    • 389-ds-base
    • 389-ds-base-2.3.6-2.el9
    • None
    • None
    • ZStream
    • rhel-sst-idm-ds
    • 25
    • 26
    • 0
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:

      When installing 389-ds-base package in container, the dirsrv with uid 389 no longer gets created.

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

      389-ds-base-2.3.4-2.el9.x86_64

      How reproducible:

      Deterministic.

      Steps to Reproduce:
      1. $ podman run --rm quay.io/centos/centos:stream9 bash -c 'dnf install -y 389-ds-base && grep dirsrv /etc/passwd'

      Actual results:

      $ podman run --rm quay.io/centos/centos:stream9 bash -c 'dnf install -y 389-ds-base && grep dirsrv /etc/passwd'
      CentOS Stream 9 - BaseOS 7.0 MB/s | 6.2 MB 00:00
      CentOS Stream 9 - AppStream 13 MB/s | 17 MB 00:01
      CentOS Stream 9 - Extras packages 115 kB/s | 12 kB 00:00
      Dependencies resolved.
      ================================================================================
      Package Arch Version Repository Size
      ================================================================================
      Installing:
      389-ds-base x86_64 2.3.4-2.el9 appstream 2.9 M
      Installing dependencies:
      389-ds-base-libs x86_64 2.3.4-2.el9 appstream 1.5 M
      acl x86_64 2.3.1-3.el9 baseos 73 k

      [...]

      Installing : cyrus-sasl-gssapi-2.1.27-21.el9.x86_64 148/151
      Installing : python3-lib389-2.3.4-2.el9.noarch 149/151
      Installing : 389-ds-base-2.3.4-2.el9.x86_64 150/151
      Running scriptlet: 389-ds-base-2.3.4-2.el9.x86_64 150/151
      useradd: invalid user ID '389:389'

      Installing : rpm-plugin-selinux-4.16.1.3-23.el9.x86_64 151/151
      Running scriptlet: nss-3.79.0-18.el9.x86_64 151/151
      Running scriptlet: selinux-policy-targeted-38.1.15-1.el9.noarch 151/151

      [...]

      util-linux-2.37.4-11.el9.x86_64
      util-linux-core-2.37.4-11.el9.x86_64

      Complete!
      $

      Expected results:

      [...]

      systemd-rpm-macros-252-15.el9.noarch
      util-linux-2.37.4-11.el9.x86_64
      util-linux-core-2.37.4-11.el9.x86_64

      Complete!
      dirsrv:x:389:389:user for 389-ds-base:/usr/share/dirsrv/:/sbin/nologin
      $

      Additional info:

              jira-bugzilla-migration RH Bugzilla Integration
              rhn-engineering-jpazdziora Jan Pazdziora
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: