Count IPA as a login plugin when checking for enabled plugins
authorRob Crittenden <rcritten@redhat.com>
Mon, 24 Aug 2015 18:27:35 +0000 (18:27 +0000)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Tue, 25 Aug 2015 12:50:43 +0000 (14:50 +0200)
The installer ensures that at least one login plugin is enabled.
It didn't consider IPA, which automatically enables gssapi,
when doing this calculation. Add a check so that IPA counts as well.

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

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

index 80bd274..2c16a03 100755 (executable)
@@ -405,7 +405,7 @@ def parse_args(plugins):
     else:
         args['lm_order'] = args['lm_order'].split(',')
 
     else:
         args['lm_order'] = args['lm_order'].split(',')
 
-    if len(args['lm_order']) == 0:
+    if len(args['lm_order']) == 0 and args['ipa'] != 'yes':
         sys.exit('No login plugins are enabled.')
 
     #FIXME: check instance is only alphanums
         sys.exit('No login plugins are enabled.')
 
     #FIXME: check instance is only alphanums