diff options
author | Sumit Bose <sbose@redhat.com> | 2012-01-23 12:57:33 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-02-29 12:53:47 -0500 |
commit | d2d2d6ae0c436461bcc8f881df059eb036314c44 (patch) | |
tree | 679d929d1b5aa4106413179d99e86c60c200279c /src/python | |
parent | b97595ae059c69b1960a6e7e56d74660388a683b (diff) | |
download | sssd-d2d2d6ae0c436461bcc8f881df059eb036314c44.tar.gz sssd-d2d2d6ae0c436461bcc8f881df059eb036314c44.tar.bz2 sssd-d2d2d6ae0c436461bcc8f881df059eb036314c44.zip |
Keep sysdb context in domain info struct
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/pysss.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/python/pysss.c b/src/python/pysss.c index 948fd160..45725c0c 100644 --- a/src/python/pysss.c +++ b/src/python/pysss.c @@ -772,15 +772,8 @@ static PyObject *PySssLocalObject_new(PyTypeObject *type, return NULL; } - ret = confdb_get_domain(self->confdb, "local", &self->local); - if (ret != EOK) { - talloc_free(mem_ctx); - PyErr_SetSssErrorWithMessage(ret, "Cannot get local domain"); - return NULL; - } - - /* open 'local' sysdb at default path */ - ret = sysdb_domain_init(self->mem_ctx, self->local, DB_PATH, &self->sysdb); + ret = sysdb_init_domain_and_sysdb(self->mem_ctx, self->confdb, "local", + DB_PATH, &self->local, &self->sysdb); if (ret != EOK) { talloc_free(mem_ctx); PyErr_SetSssErrorWithMessage(ret, |