summaryrefslogtreecommitdiffstats
path: root/src/python/pysss.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-06 03:58:58 -0500
committerSimo Sorce <simo@redhat.com>2013-01-11 10:43:09 -0500
commit0ffd1aee6bcbefb6b7af09f4f086d8b25e09f5b9 (patch)
tree0a454e57a883e8406c11fb8c8eabf80357861409 /src/python/pysss.c
parentbab2300cfb5c4e124c9f747718853633f62e4e3e (diff)
Refactor single domain initialization
Bring it out of sysdb, which will slowly remove internal dependencies on domains and instead will always require them to be passed by callers.
Diffstat (limited to 'src/python/pysss.c')
-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 842c1b5e4..95cf781db 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;