#9869 Adding a user with a duplicate UID fails in an unexpected way
Opened by rcritten. Modified

Issue

When trying to add a user with a UID that is a duplicate fails but not with the actual reason.

$ id 436400009
uid=436400009(tuser2) gid=436400009(tuser2) groups=436400009(tuser2)
$ ipa user-add --first new --last user newuser --uid 436400009
ipa: ERROR: user with name "newuser" already exists
$ ipa user-show newuser
ipa: ERROR: newuser: user not found

I expected an error about an existing UID, not that the user itself already exists.

Version/Release/Distribution

A pretty recent pull of master
freeipa-server-4.13.0.dev202511031322+git3a64163f0-0


Metadata