Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User IDs instead of user names in subuid/subgid doesn't work in AD environment #95

Open
jfath opened this issue Jul 9, 2024 · 2 comments

Comments

@jfath
Copy link

jfath commented Jul 9, 2024

Tested v4.7.2, v4.9.5, and v5.1.1 in rhel7.

Using username in /etc/subuid /etc/subguid works as expected. Using userid in those files, rootless 'podman image ls' fails with:
cannot find UID/GID for user {username}: no subuid ranges found for user "{username}"
It works without error in a non-AD environment using local user IDs.

I also tested rhel8 v4.9.4 release from the redhat standard repos and it works as expected in an AD environment with userids.

I see there was a related issue a couple of years ago which was solved by an idtools PR - maybe not helpfule, but thought it was worth mentioning:
containers/storage#1264

@mgoltzsche
Copy link
Owner

mgoltzsche commented Jul 21, 2024

What's do you mean by AD environment? Active Directory?
As I understand the username is used in the /etc/subuid file to make rootless podman work, no?
Do you want to change that just for the sake of your environment, accepting to break it for others?
Or maybe I misunderstood your request. Please clarify that.

I also tested rhel8 v4.9.4 release from the redhat standard repos and it works as expected in an AD environment with userids.

What did you test? The official podman installation on rhel8 or the podman container image produced by this repo on rhel8 or the binary archive distribution attached to the release within this repo?

The /etc/{subuid,subgid} files within the container image produced by this repo are aligned with the official quay.io/podman/stable image and I am trying to keep it that way.
Thus, when you want to diverge from the official image, please consider creating a corresponding issue within the upstream podman project.
In case you think the configuration within this repo is not aligned with the corresponding image, I am inclined to change that but then please be clear about it.

@jfath
Copy link
Author

jfath commented Jul 22, 2024

Yes, Active Directory, non-local users. I'm using the non-container installation from your release.

Current official Podman supports using either usernames or user IDs in the /etc/subuid file. I tested with the official rhel8 installation.

The bug I linked points to an official podman release component that was broken in the same way at one point (usernames only, no user IDs) and was then fixed. That's why I thought it might be relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants