From 8728d3145f4c2f7bd1fed8c75f33f9ed7df555d2 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Sep 13 2012 11:13:16 +0000 Subject: Add the SSH service to SSSD config file before trying to activate it. ticket 3069 --- diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index 3b1fd1a..52d3533 100755 --- a/ipa-client/ipa-install/ipa-client-install +++ b/ipa-client/ipa-install/ipa-client-install @@ -803,14 +803,18 @@ def configure_sssd_conf(fstore, cli_realm, cli_domain, cli_server, options, clie domain = sssdconfig.new_domain(cli_domain) try: - sssdconfig.activate_service('ssh') - except SSSDConfig.NoServiceError: + sssdconfig.new_service('ssh') + except SSSDConfig.ServiceAlreadyExists: + pass + except SSSDConfig.ServiceNotRecognizedError: root_logger.error("Unable to activate the SSH service in SSSD config.") root_logger.info( "Please make sure you have SSSD built with SSH support installed.") root_logger.info( "Configure SSH support manually in /etc/sssd/sssd.conf.") + sssdconfig.activate_service('ssh') + domain.add_provider('ipa', 'id') #add discovery domain if client domain different from server domain