Better error handling for login mgrs in server install/uninstall
authorRob Crittenden <rcritten@redhat.com>
Thu, 9 Apr 2015 23:20:03 +0000 (19:20 -0400)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Mon, 13 Apr 2015 16:30:37 +0000 (18:30 +0200)
commitf73332fb7d55bd5753a8bafc2493172203fcf377
treec6eeb53e1b16519bbd01d9b041b406259826ab16
parentc4c121e57516ffb70b980ea1fbafe1e6f8611c3f
Better error handling for login mgrs in server install/uninstall

The purpose is to catch it when either no modules are enabled or if
you try to set the login module order and one of them is not
available/installed, then fail gracefully.

There were some baked-in assumptions that all login providers
are installed. Add some error handling around trying to determine
what is available, and rather than trying to force pam to be enabled
just exit with a handy message.

Don't rely on lm_order during uninstall. Use the list of enabled
Login managers instead.

Bail out of argument checking if uninstall is requested.

https://fedorahosted.org/ipsilon/ticket/105

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
ipsilon/install/ipsilon-server-install