On Аўт, 12 жні 2025, Thomas Boroske via FreeIPA-users wrote:
Dear FreeIPA experts,

I am trying to get the "subid" feature of my FreeIPA managed
installation working to use on some Debian 12 workstations (ultimately
to use rootless docker).

The Server is IPA, Version: 4.12.2

The debian 12 freeipa-client package is 4.9.11-1

The systems were originally not installed with the "--subid" option, I
therefore added the line

"subuid: sss"

manually to /etc/nsswitch.conf.

However, I also did an ipa-client-install with --force-join --subid on
one system to see if it changed something.

With the nsswitch.conf setup like that, I can do:

dockeruser@stu-workstation2:~$ ipa subid-find dockeruser
------------------------
1 subordinate id matched
------------------------
 Eindeutige ID: bdd556b6-1bb1-4d4f-a2a0-aab35108dcb2
 Eigentümer: dockeruser
 SubUID range start: 2147549184
 SubUID range size: 65536
 SubGID range start: 2147549184
 SubGID range size: 65536
-------------------------------------
Anzahl der zurückgegebenen Einträge 1
-------------------------------------

This looks fine.

The problem is, that this will not work:

dockeruser@stu-workstation2:~$ getsubids dockeruser
Error fetching ranges

If I enter a line for "dockeruser" into /etc/subuid, the getsubuids command 
will display it.

This means the setting in /etc/nsswich.conf seems to be ignored or something 
else
causes it to fall back to looking in the file.

What does strace tell when you run getsubids?

$ strace -e trace=file getsubids dockeruser

--
/ Alexander Bokovoy
Sr. Principal Software Engineer
Security / Identity Management Engineering
Red Hat Limited, Finland

--
_______________________________________________
FreeIPA-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to