On 2/3/21 6:18 PM, Friedrich Schäuffelhut wrote:
We would like to fix this without reinstalling FreeIPA. We have already a number of hosts, users and certificates enrolled.
I am now looking for a way to move the FreeIPA UID range to a different area, e.g. 10.000 - 20.000.
We run 3 replicas connected to each other.
I found the ipa comands 'idrange-add' and 'idrange-del' and wonder if I could use those to
- add a new range at 10.000
- Update UIDs of existing users
- remove the old range at 100.000.
If I understand correctly moving your IPA range may be problematic since you are actively using the uids. Do you have substantial podman usage? If not, move the podman ranges away. They are automatically allocated according to SUB_UID_MIN et al. (man adduser): change those vars and reassign ranges for the existing users. Personally, I find the 100000+uid*65536 default rule terrible since it gives you unreadable final numbers. My rule is to rebuild everything from scratch after adding a new user with:
while IFS=":" read a b c x; do [ $c -eq 0 ] && c=1;echo "$a:$[100000*c]:65536";done </etc/passwd >/etc/subuid while IFS=":" read a b c x; do [ $c -eq 0 ] && c=1;echo "$a:$[100000*c]:65536";done </etc/group >/etc/subgid
which gives me 400015 for subuser 15 of user 4. (note that root=0 is problematic and I collapse it into bin=1, both starting at 100000)
Regards.