From 234958be042980242fff6da936af674da877c5ef Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 6 Jan 2013 03:58:58 -0500 Subject: 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. --- src/python/pysss.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/python') 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; -- cgit