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