Blame SOURCES/0001-IPA-do-not-call-sssd-enable-logins.patch

688d36
From 373f2e03736dfd87d50f02208b99d462cf34d891 Mon Sep 17 00:00:00 2001
688d36
From: Sumit Bose <sbose@redhat.com>
688d36
Date: Thu, 27 Sep 2018 13:04:47 +0200
688d36
Subject: [PATCH] IPA: do not call sssd-enable-logins
688d36
688d36
It is expected that ipa-client-install will do all PAM and NSS
688d36
configuration. To avoid changing IPA default realmd will not try to
688d36
update the related configuration.
688d36
---
688d36
 service/realm-sssd-ipa.c | 24 +-----------------------
688d36
 1 file changed, 1 insertion(+), 23 deletions(-)
688d36
688d36
diff --git a/service/realm-sssd-ipa.c b/service/realm-sssd-ipa.c
688d36
index 5029f6b..70f8b0e 100644
688d36
--- a/service/realm-sssd-ipa.c
688d36
+++ b/service/realm-sssd-ipa.c
688d36
@@ -109,41 +109,19 @@ enroll_closure_free (gpointer data)
688d36
	g_free (enroll);
688d36
 }
688d36
 
688d36
-static void
688d36
-on_enable_nss_done (GObject *source,
688d36
-                    GAsyncResult *result,
688d36
-                    gpointer user_data)
688d36
-{
688d36
-	GTask *task = G_TASK (user_data);
688d36
-	GError *error = NULL;
688d36
-	gint status;
688d36
-
688d36
-	status = realm_command_run_finish (result, NULL, &error);
688d36
-	if (error == NULL && status != 0)
688d36
-		g_set_error (&error, REALM_ERROR, REALM_ERROR_INTERNAL,
688d36
-		             _("Enabling SSSD in nsswitch.conf and PAM failed."));
688d36
-	if (error != NULL)
688d36
-		g_task_return_error (task, error);
688d36
-	else
688d36
-		g_task_return_boolean (task, TRUE);
688d36
-	g_object_unref (task);
688d36
-}
688d36
-
688d36
 static void
688d36
 on_restart_done (GObject *source,
688d36
                  GAsyncResult *result,
688d36
                  gpointer user_data)
688d36
 {
688d36
 	GTask *task = G_TASK (user_data);
688d36
-	EnrollClosure *enroll = g_task_get_task_data (task);
688d36
 	RealmSssd *sssd = g_task_get_source_object (task);
688d36
 	GError *error = NULL;
688d36
 
688d36
 	realm_service_enable_and_restart_finish (result, &error);
688d36
 	if (error == NULL) {
688d36
 		realm_sssd_update_properties (sssd);
688d36
-		realm_command_run_known_async ("sssd-enable-logins", NULL, enroll->invocation,
688d36
-		                               on_enable_nss_done, g_object_ref (task));
688d36
+		g_task_return_boolean (task, TRUE);
688d36
 	} else {
688d36
 		g_task_return_error (task, error);
688d36
 	}
688d36
-- 
688d36
2.17.1
688d36