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

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