Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source4/param/provision.c

    r740 r988  
    2626#include "param/provision.h"
    2727#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"
    3030#include "param/pyparam.h"
    3131#include "dynconfig/dynconfig.h"
     
    168168        PyDict_SetItemString(parameters, "debuglevel", PyInt_FromLong(DEBUGLEVEL));
    169169
     170        PyDict_SetItemString(parameters, "use_ntvfs", PyInt_FromLong(settings->use_ntvfs));
     171
    170172        py_result = PyEval_CallObjectWithKeywords(provision_fn, NULL, parameters);
    171173
     
    187189        }
    188190        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"));
    190192
    191193        return NT_STATUS_OK;
     
    204206                return NULL;
    205207
    206         return py_talloc_reference((PyTypeObject *)dom_sid_Type, sid);
     208        return pytalloc_reference((PyTypeObject *)dom_sid_Type, sid);
    207209}
    208210
     
    331333
    332334
    333 struct ldb_context *provision_get_schema(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx,
     335struct ldb_context *provision_get_schema(TALLOC_CTX *mem_ctx,
     336                                         struct loadparm_context *lp_ctx,
     337                                         const char *schema_dn,
    334338                                         DATA_BLOB *override_prefixmap)
    335339{
     
    362366       
    363367        parameters = PyDict_New();
     368
     369        if (schema_dn) {
     370                PyDict_SetItemString(parameters, "schemadn",
     371                                     PyString_FromString(schema_dn));
     372        }
    364373
    365374        if (override_prefixmap) {
     
    379388        }
    380389
    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.