CentOS 6 rpms fail to install on systems enrolled on a FreeIPA domain
|Target version:||Release 4.4|
|Affected Versions:||OpenNebula 4.2|
At work we're using FreeIPA to manage our user accounts. We already have a "oneadmin" account on the freeipa server, but the preinstall script checks only /etc/passwd to see if oneadmin exists. Of course it can't find it so it tries to add it and fails.
I've attached a patch to the spec file that checks for the oneadmin user using getent (as we already do for the oneadmin group).
I've also switched the semantics of the if conditional, it seems more natural that way. I can make a new patch to revert it if requested.