Podman ignores /etc/nsswitch.conf
option subid: sss
#25041
Labels
kind/bug
Categorizes issue or PR as related to a bug.
/etc/nsswitch.conf
option subid: sss
#25041
Issue Description
I have set up machine
y
to read user information from a FreeIPA LDAP server with SSSD through/etc/nsswitch.conf
, including the optionsubid: sss
. When running a rootless containerz
as an LDAP userx
on machiney
, Podman ignores this, looks for/etc/subuid
anyway, and fails to find it. The output fromjournalctl --user -xeu z
after runningsystemctl --user start z
ends with:See also #16018 and #16244.
Steps to reproduce the issue
Steps to reproduce the issue
subid: sss
in/etc/nsswitch.conf
--userns=auto
or through systemd withUserNS=auto
.Describe the results you received
The container stops with the error message described above.
Describe the results you expected
The subordinate ids are correctly retrieved from SSSD and the container runs without issue.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
This happens on a physical machine running openSUSE Tumbleweed, the latest SSSD 2.10.1, and the latest Podman 5.3.1, not in a virtual environment.
Additional information
This issue happens with the option
--userns=auto
orUserNS=auto
in asystemd
container definition. Note thatgetsubids
properly reads subordinate ids from the LDAP server, so these are otherwise correctly set up.The text was updated successfully, but these errors were encountered: