Changeset 988 for vendor/current/source4/param/provision.c
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/param/provision.c
r740 r988 26 26 #include "param/provision.h" 27 27 #include "param/secrets.h" 28 #include "lib/talloc/pytalloc.h"29 #include " scripting/python/modules.h"28 #include <pytalloc.h> 29 #include "python/modules.h" 30 30 #include "param/pyparam.h" 31 31 #include "dynconfig/dynconfig.h" … … 168 168 PyDict_SetItemString(parameters, "debuglevel", PyInt_FromLong(DEBUGLEVEL)); 169 169 170 PyDict_SetItemString(parameters, "use_ntvfs", PyInt_FromLong(settings->use_ntvfs)); 171 170 172 py_result = PyEval_CallObjectWithKeywords(provision_fn, NULL, parameters); 171 173 … … 187 189 } 188 190 result->lp_ctx = lpcfg_from_py_object(mem_ctx, py_lp_ctx); 189 result->samdb = PyLdb_AsLdbContext(PyObject_GetAttrString(py_result, "samdb"));191 result->samdb = pyldb_Ldb_AsLdbContext(PyObject_GetAttrString(py_result, "samdb")); 190 192 191 193 return NT_STATUS_OK; … … 204 206 return NULL; 205 207 206 return py _talloc_reference((PyTypeObject *)dom_sid_Type, sid);208 return pytalloc_reference((PyTypeObject *)dom_sid_Type, sid); 207 209 } 208 210 … … 331 333 332 334 333 struct ldb_context *provision_get_schema(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, 335 struct ldb_context *provision_get_schema(TALLOC_CTX *mem_ctx, 336 struct loadparm_context *lp_ctx, 337 const char *schema_dn, 334 338 DATA_BLOB *override_prefixmap) 335 339 { … … 362 366 363 367 parameters = PyDict_New(); 368 369 if (schema_dn) { 370 PyDict_SetItemString(parameters, "schemadn", 371 PyString_FromString(schema_dn)); 372 } 364 373 365 374 if (override_prefixmap) { … … 379 388 } 380 389 381 return PyLdb_AsLdbContext(PyObject_GetAttrString(py_result, "ldb"));382 } 390 return pyldb_Ldb_AsLdbContext(PyObject_GetAttrString(py_result, "ldb")); 391 }
Note:
See TracChangeset
for help on using the changeset viewer.