summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-19 16:08:35 +0000
committerJelmer Vernooij <jelmer@samba.org>2008-12-19 16:08:35 +0000
commit04bef7fe2ab689a9ab569d5581034e0c02237771 (patch)
tree5424c21838199982b596b9f5895e0818d4033042 /source4/param
parent7f4e4df58de8878b43ff104a70a89b44690534a3 (diff)
downloadsamba-04bef7fe2ab689a9ab569d5581034e0c02237771.tar.gz
samba-04bef7fe2ab689a9ab569d5581034e0c02237771.tar.bz2
samba-04bef7fe2ab689a9ab569d5581034e0c02237771.zip
Fix more tests.
Diffstat (limited to 'source4/param')
-rw-r--r--source4/param/provision.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/param/provision.c b/source4/param/provision.c
index 0e54acf9e4..b207cf6145 100644
--- a/source4/param/provision.c
+++ b/source4/param/provision.c
@@ -27,13 +27,13 @@
#include "param/provision.h"
#include <Python.h>
#include "scripting/python/modules.h"
+#include "lib/ldb/pyldb.h"
NTSTATUS provision_bare(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx,
struct provision_settings *settings,
struct provision_result *result)
{
extern struct loadparm_context *lp_from_py_object(PyObject *py_obj);
- struct ldb_context *ldb_context_from_py_object(PyObject *py_obj);
PyObject *provision_mod, *provision_dict, *provision_fn, *py_result, *parameters;
DEBUG(0,("Provision for Become-DC test using python\n"));
@@ -133,7 +133,7 @@ NTSTATUS provision_bare(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx,
/* FIXME paths */
result->lp_ctx = lp_from_py_object(PyObject_GetAttrString(py_result, "lp"));
- result->samdb = ldb_context_from_py_object(PyObject_GetAttrString(py_result, "samdb"));
+ result->samdb = PyLdb_AsLdbContext(PyObject_GetAttrString(py_result, "samdb"));
return NT_STATUS_OK;
}