summaryrefslogtreecommitdiffstats
path: root/src/sssd/LMI_SSSDResponderProvider.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sssd/LMI_SSSDResponderProvider.c')
-rw-r--r--src/sssd/LMI_SSSDResponderProvider.c48
1 files changed, 3 insertions, 45 deletions
diff --git a/src/sssd/LMI_SSSDResponderProvider.c b/src/sssd/LMI_SSSDResponderProvider.c
index d826a72..b370bc5 100644
--- a/src/sssd/LMI_SSSDResponderProvider.c
+++ b/src/sssd/LMI_SSSDResponderProvider.c
@@ -1,32 +1,10 @@
-/*
- Authors:
- Pavel Březina <pbrezina@redhat.com>
-
- Copyright (C) 2014 Red Hat
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
#include <konkret/konkret.h>
#include "LMI_SSSDResponder.h"
-#include "LMI_SSSD_utils.h"
static const CMPIBroker* _cb = NULL;
-static void LMI_SSSDResponderInitialize(const CMPIContext *ctx)
+static void LMI_SSSDResponderInitialize()
{
- lmi_init(PROVIDER_NAME, _cb, ctx, NULL);
}
static CMPIStatus LMI_SSSDResponderCleanup(
@@ -54,26 +32,6 @@ static CMPIStatus LMI_SSSDResponderEnumInstances(
const CMPIObjectPath* cop,
const char** properties)
{
- LMI_SSSDResponder lmi_responder;
- const char *namespace = KNameSpace(cop);
- const char *responders[] = {"nss", "pam", "sudo", "ssh", "autofs",
- "pac", "ifp", NULL};
- int i;
-
- for (i = 0; responders[i] != NULL; i++) {
- LMI_SSSDResponder_Init(&lmi_responder, _cb, namespace);
-
- /* Set keys */
- LMI_SSSDResponder_Set_Name(&lmi_responder, responders[i]);
-
- /* Set values */
- LMI_SSSDResponder_Set_DebugLevel(&lmi_responder, 0x3ff0);
- LMI_SSSDResponder_Set_IsEnabled(&lmi_responder, true);
- LMI_SSSDResponder_Set_Description(&lmi_responder, "SSSD Responder");
-
- KReturnInstance(cr, lmi_responder);
- }
-
CMReturn(CMPI_RC_OK);
}
@@ -133,7 +91,7 @@ CMInstanceMIStub(
LMI_SSSDResponder,
LMI_SSSDResponder,
_cb,
- LMI_SSSDResponderInitialize(ctx))
+ LMI_SSSDResponderInitialize())
static CMPIStatus LMI_SSSDResponderMethodCleanup(
CMPIMethodMI* mi,
@@ -160,7 +118,7 @@ CMMethodMIStub(
LMI_SSSDResponder,
LMI_SSSDResponder,
_cb,
- LMI_SSSDResponderInitialize(ctx))
+ LMI_SSSDResponderInitialize())
KUint32 LMI_SSSDResponder_SetDebugLevelPermanently(
const CMPIBroker* cb,