summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
Diffstat (limited to 'src/python')
-rw-r--r--src/python/pysss.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/python/pysss.c b/src/python/pysss.c
index 842c1b5e..95cf781d 100644
--- a/src/python/pysss.c
+++ b/src/python/pysss.c
@@ -800,14 +800,15 @@ static PyObject *PySssLocalObject_new(PyTypeObject *type,
return NULL;
}
- ret = sysdb_init_domain_and_sysdb(self->mem_ctx, self->confdb, "local",
- DB_PATH, &self->local, &self->sysdb);
+ ret = sssd_domain_init(self->mem_ctx, self->confdb, "local",
+ DB_PATH, &self->local);
if (ret != EOK) {
talloc_free(mem_ctx);
PyErr_SetSssErrorWithMessage(ret,
"Could not initialize connection to the sysdb\n");
return NULL;
}
+ self->sysdb = self->local->sysdb;
self->lock = DO_LOCK;
self->unlock = DO_UNLOCK;