1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

r26624: libnet/python: Use standard function for constructing context, allow overriding credentials.

(This used to be commit a5fb3caede)
This commit is contained in:
Jelmer Vernooij 2007-12-28 16:25:27 -06:00 committed by Stefan Metzmacher
parent 405a20b44f
commit 68b6982704
4 changed files with 179 additions and 61 deletions

View File

@ -22,18 +22,23 @@
#include "includes.h"
#include "libnet/libnet.h"
#include "lib/events/events.h"
#include "param/param.h"
typedef struct libnet_context libnet;
%}
%import "../libcli/util/errors.i"
%import "../lib/events/events.i"
%import "../lib/talloc/talloc.i"
%import "../param/param.i"
struct libnet_context *libnet_context_init(struct event_context *ev,
struct loadparm_context *lp_ctx);
%talloctype(libnet_context);
typedef struct libnet_context {
struct cli_credentials *cred;
%extend {
libnet(struct event_context *ev, struct loadparm_context *lp_ctx) {
return libnet_context_init(ev, lp_ctx);
}
NTSTATUS samsync_ldb(TALLOC_CTX *mem_ctx, struct libnet_samsync_ldb *r);
NTSTATUS DomainList(TALLOC_CTX *mem_ctx, struct libnet_DomainList *io);
NTSTATUS DomainClose(TALLOC_CTX *mem_ctx, struct libnet_DomainClose *io);

View File

@ -58,10 +58,11 @@ def _swig_setattr_nondynamic_method(set):
import events
libnet_context_init = _net.libnet_context_init
import param
class libnet(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
cred = _swig_property(_net.libnet_cred_get, _net.libnet_cred_set)
def __init__(self, *args, **kwargs):
_net.libnet_swiginit(self,_net.new_libnet(*args, **kwargs))
__swig_destroy__ = _net.delete_libnet

View File

@ -2458,40 +2458,53 @@ SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags)
#define SWIGTYPE_p_TALLOC_CTX swig_types[0]
#define SWIGTYPE_p_char swig_types[1]
#define SWIGTYPE_p_event_context swig_types[2]
#define SWIGTYPE_p_ldb_context swig_types[3]
#define SWIGTYPE_p_libnet_AddShare swig_types[4]
#define SWIGTYPE_p_libnet_BecomeDC swig_types[5]
#define SWIGTYPE_p_libnet_ChangePassword swig_types[6]
#define SWIGTYPE_p_libnet_CreateUser swig_types[7]
#define SWIGTYPE_p_libnet_DelShare swig_types[8]
#define SWIGTYPE_p_libnet_DeleteUser swig_types[9]
#define SWIGTYPE_p_libnet_DomainClose swig_types[10]
#define SWIGTYPE_p_libnet_DomainList swig_types[11]
#define SWIGTYPE_p_libnet_DomainOpen swig_types[12]
#define SWIGTYPE_p_libnet_GroupInfo swig_types[13]
#define SWIGTYPE_p_libnet_GroupList swig_types[14]
#define SWIGTYPE_p_libnet_Join swig_types[15]
#define SWIGTYPE_p_libnet_JoinDomain swig_types[16]
#define SWIGTYPE_p_libnet_ListShares swig_types[17]
#define SWIGTYPE_p_libnet_Lookup swig_types[18]
#define SWIGTYPE_p_libnet_LookupDCs swig_types[19]
#define SWIGTYPE_p_libnet_LookupName swig_types[20]
#define SWIGTYPE_p_libnet_ModifyUser swig_types[21]
#define SWIGTYPE_p_libnet_RemoteTOD swig_types[22]
#define SWIGTYPE_p_libnet_RpcConnect swig_types[23]
#define SWIGTYPE_p_libnet_SamDump swig_types[24]
#define SWIGTYPE_p_libnet_SamDump_keytab swig_types[25]
#define SWIGTYPE_p_libnet_SamSync swig_types[26]
#define SWIGTYPE_p_libnet_SetPassword swig_types[27]
#define SWIGTYPE_p_libnet_UnbecomeDC swig_types[28]
#define SWIGTYPE_p_libnet_UserInfo swig_types[29]
#define SWIGTYPE_p_libnet_UserList swig_types[30]
#define SWIGTYPE_p_libnet_context swig_types[31]
#define SWIGTYPE_p_libnet_samsync_ldb swig_types[32]
#define SWIGTYPE_p_loadparm_context swig_types[33]
static swig_type_info *swig_types[35];
static swig_module_info swig_module = {swig_types, 34, 0, 0, 0, 0};
#define SWIGTYPE_p_cli_credentials swig_types[2]
#define SWIGTYPE_p_event_context swig_types[3]
#define SWIGTYPE_p_int swig_types[4]
#define SWIGTYPE_p_ldb_context swig_types[5]
#define SWIGTYPE_p_libnet_AddShare swig_types[6]
#define SWIGTYPE_p_libnet_BecomeDC swig_types[7]
#define SWIGTYPE_p_libnet_ChangePassword swig_types[8]
#define SWIGTYPE_p_libnet_CreateUser swig_types[9]
#define SWIGTYPE_p_libnet_DelShare swig_types[10]
#define SWIGTYPE_p_libnet_DeleteUser swig_types[11]
#define SWIGTYPE_p_libnet_DomainClose swig_types[12]
#define SWIGTYPE_p_libnet_DomainList swig_types[13]
#define SWIGTYPE_p_libnet_DomainOpen swig_types[14]
#define SWIGTYPE_p_libnet_GroupInfo swig_types[15]
#define SWIGTYPE_p_libnet_GroupList swig_types[16]
#define SWIGTYPE_p_libnet_Join swig_types[17]
#define SWIGTYPE_p_libnet_JoinDomain swig_types[18]
#define SWIGTYPE_p_libnet_ListShares swig_types[19]
#define SWIGTYPE_p_libnet_Lookup swig_types[20]
#define SWIGTYPE_p_libnet_LookupDCs swig_types[21]
#define SWIGTYPE_p_libnet_LookupName swig_types[22]
#define SWIGTYPE_p_libnet_ModifyUser swig_types[23]
#define SWIGTYPE_p_libnet_RemoteTOD swig_types[24]
#define SWIGTYPE_p_libnet_RpcConnect swig_types[25]
#define SWIGTYPE_p_libnet_SamDump swig_types[26]
#define SWIGTYPE_p_libnet_SamDump_keytab swig_types[27]
#define SWIGTYPE_p_libnet_SamSync swig_types[28]
#define SWIGTYPE_p_libnet_SetPassword swig_types[29]
#define SWIGTYPE_p_libnet_UnbecomeDC swig_types[30]
#define SWIGTYPE_p_libnet_UserInfo swig_types[31]
#define SWIGTYPE_p_libnet_UserList swig_types[32]
#define SWIGTYPE_p_libnet_context swig_types[33]
#define SWIGTYPE_p_libnet_samsync_ldb swig_types[34]
#define SWIGTYPE_p_loadparm_context swig_types[35]
#define SWIGTYPE_p_loadparm_service swig_types[36]
#define SWIGTYPE_p_long_long swig_types[37]
#define SWIGTYPE_p_param_context swig_types[38]
#define SWIGTYPE_p_param_opt swig_types[39]
#define SWIGTYPE_p_param_section swig_types[40]
#define SWIGTYPE_p_short swig_types[41]
#define SWIGTYPE_p_signed_char swig_types[42]
#define SWIGTYPE_p_unsigned_char swig_types[43]
#define SWIGTYPE_p_unsigned_int swig_types[44]
#define SWIGTYPE_p_unsigned_long_long swig_types[45]
#define SWIGTYPE_p_unsigned_short swig_types[46]
static swig_type_info *swig_types[48];
static swig_module_info swig_module = {swig_types, 47, 0, 0, 0, 0};
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
@ -2534,16 +2547,73 @@ static swig_module_info swig_module = {swig_types, 34, 0, 0, 0, 0};
#include "includes.h"
#include "libnet/libnet.h"
#include "lib/events/events.h"
#include "param/param.h"
typedef struct libnet_context libnet;
SWIGINTERN libnet *new_libnet(struct event_context *ev,struct loadparm_context *lp_ctx){
return libnet_context_init(ev, lp_ctx);
}
#ifdef __cplusplus
extern "C" {
#endif
SWIGINTERN PyObject *_wrap_libnet_context_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
SWIGINTERN PyObject *_wrap_libnet_cred_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
libnet *arg1 = (libnet *) 0 ;
struct cli_credentials *arg2 = (struct cli_credentials *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args,"libnet_cred_set",2,2,swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_libnet_context, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "libnet_cred_set" "', argument " "1"" of type '" "libnet *""'");
}
arg1 = (libnet *)(argp1);
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_cli_credentials, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "libnet_cred_set" "', argument " "2"" of type '" "struct cli_credentials *""'");
}
arg2 = (struct cli_credentials *)(argp2);
if (arg1) (arg1)->cred = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_libnet_cred_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
libnet *arg1 = (libnet *) 0 ;
struct cli_credentials *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_libnet_context, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "libnet_cred_get" "', argument " "1"" of type '" "libnet *""'");
}
arg1 = (libnet *)(argp1);
result = (struct cli_credentials *) ((arg1)->cred);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cli_credentials, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_libnet(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
struct event_context *arg1 = (struct event_context *) 0 ;
struct loadparm_context *arg2 = (struct loadparm_context *) 0 ;
struct libnet_context *result = 0 ;
libnet *result = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
@ -2555,23 +2625,24 @@ SWIGINTERN PyObject *_wrap_libnet_context_init(PyObject *SWIGUNUSEDPARM(self), P
};
arg1 = event_context_init(NULL);
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:libnet_context_init",kwnames,&obj0,&obj1)) SWIG_fail;
arg2 = loadparm_init(NULL);
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_libnet",kwnames,&obj0,&obj1)) SWIG_fail;
if (obj0) {
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_event_context, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "libnet_context_init" "', argument " "1"" of type '" "struct event_context *""'");
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_libnet" "', argument " "1"" of type '" "struct event_context *""'");
}
arg1 = (struct event_context *)(argp1);
}
if (obj1) {
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_loadparm_context, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "libnet_context_init" "', argument " "2"" of type '" "struct loadparm_context *""'");
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_libnet" "', argument " "2"" of type '" "struct loadparm_context *""'");
}
arg2 = (struct loadparm_context *)(argp2);
}
result = (struct libnet_context *)libnet_context_init(arg1,arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libnet_context, 0 | 0 );
result = (libnet *)new_libnet(arg1,arg2);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libnet_context, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
@ -3845,19 +3916,6 @@ fail:
}
SWIGINTERN PyObject *_wrap_new_libnet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
libnet *result = 0 ;
if (!SWIG_Python_UnpackTuple(args,"new_libnet",0,0,0)) SWIG_fail;
result = (libnet *)(libnet *) calloc(1, sizeof(libnet));
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libnet_context, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_libnet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
libnet *arg1 = (libnet *) 0 ;
@ -3893,7 +3951,9 @@ SWIGINTERN PyObject *libnet_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *a
}
static PyMethodDef SwigMethods[] = {
{ (char *)"libnet_context_init", (PyCFunction) _wrap_libnet_context_init, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"libnet_cred_set", _wrap_libnet_cred_set, METH_VARARGS, NULL},
{ (char *)"libnet_cred_get", (PyCFunction)_wrap_libnet_cred_get, METH_O, NULL},
{ (char *)"new_libnet", (PyCFunction) _wrap_new_libnet, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"libnet_samsync_ldb", (PyCFunction) _wrap_libnet_samsync_ldb, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"libnet_DomainList", (PyCFunction) _wrap_libnet_DomainList, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"libnet_DomainClose", (PyCFunction) _wrap_libnet_DomainClose, METH_VARARGS | METH_KEYWORDS, NULL},
@ -3924,7 +3984,6 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"libnet_RemoteTOD", (PyCFunction) _wrap_libnet_RemoteTOD, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"libnet_ChangePassword", (PyCFunction) _wrap_libnet_ChangePassword, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"libnet_SetPassword", (PyCFunction) _wrap_libnet_SetPassword, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"new_libnet", (PyCFunction)_wrap_new_libnet, METH_NOARGS, NULL},
{ (char *)"delete_libnet", (PyCFunction)_wrap_delete_libnet, METH_O, NULL},
{ (char *)"libnet_swigregister", libnet_swigregister, METH_VARARGS, NULL},
{ (char *)"libnet_swiginit", libnet_swiginit, METH_VARARGS, NULL},
@ -3936,7 +3995,9 @@ static PyMethodDef SwigMethods[] = {
static swig_type_info _swigt__p_TALLOC_CTX = {"_p_TALLOC_CTX", "TALLOC_CTX *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_event_context = {"_p_event_context", "struct event_context *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_cli_credentials = {"_p_cli_credentials", "struct cli_credentials *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_event_context = {"_p_event_context", "struct event_context *|event_context *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_int = {"_p_int", "intptr_t *|int *|int_least32_t *|int_fast32_t *|int32_t *|int_fast16_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_ldb_context = {"_p_ldb_context", "struct ldb_context *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_libnet_AddShare = {"_p_libnet_AddShare", "struct libnet_AddShare *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_libnet_BecomeDC = {"_p_libnet_BecomeDC", "struct libnet_BecomeDC *", 0, 0, (void*)0, 0};
@ -3967,12 +4028,25 @@ static swig_type_info _swigt__p_libnet_UserInfo = {"_p_libnet_UserInfo", "struct
static swig_type_info _swigt__p_libnet_UserList = {"_p_libnet_UserList", "struct libnet_UserList *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_libnet_context = {"_p_libnet_context", "struct libnet_context *|libnet *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_libnet_samsync_ldb = {"_p_libnet_samsync_ldb", "struct libnet_samsync_ldb *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_loadparm_context = {"_p_loadparm_context", "struct loadparm_context *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_loadparm_context = {"_p_loadparm_context", "struct loadparm_context *|loadparm_context *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_loadparm_service = {"_p_loadparm_service", "struct loadparm_service *|loadparm_service *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_long_long = {"_p_long_long", "int_least64_t *|int_fast64_t *|int64_t *|long long *|intmax_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_param_context = {"_p_param_context", "struct param_context *|param *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_param_opt = {"_p_param_opt", "struct param_opt *|param_opt *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_param_section = {"_p_param_section", "struct param_section *|param_section *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_short = {"_p_short", "short *|int_least16_t *|int16_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|int_least8_t *|int_fast8_t *|int8_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|uint_least8_t *|uint_fast8_t *|uint8_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "uintptr_t *|uint_least32_t *|uint_fast32_t *|uint32_t *|unsigned int *|uint_fast16_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "uint_least64_t *|uint_fast64_t *|uint64_t *|unsigned long long *|uintmax_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|uint_least16_t *|uint16_t *", 0, 0, (void*)0, 0};
static swig_type_info *swig_type_initial[] = {
&_swigt__p_TALLOC_CTX,
&_swigt__p_char,
&_swigt__p_cli_credentials,
&_swigt__p_event_context,
&_swigt__p_int,
&_swigt__p_ldb_context,
&_swigt__p_libnet_AddShare,
&_swigt__p_libnet_BecomeDC,
@ -4004,11 +4078,24 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_libnet_context,
&_swigt__p_libnet_samsync_ldb,
&_swigt__p_loadparm_context,
&_swigt__p_loadparm_service,
&_swigt__p_long_long,
&_swigt__p_param_context,
&_swigt__p_param_opt,
&_swigt__p_param_section,
&_swigt__p_short,
&_swigt__p_signed_char,
&_swigt__p_unsigned_char,
&_swigt__p_unsigned_int,
&_swigt__p_unsigned_long_long,
&_swigt__p_unsigned_short,
};
static swig_cast_info _swigc__p_TALLOC_CTX[] = { {&_swigt__p_TALLOC_CTX, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_cli_credentials[] = { {&_swigt__p_cli_credentials, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_event_context[] = { {&_swigt__p_event_context, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_ldb_context[] = { {&_swigt__p_ldb_context, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_libnet_AddShare[] = { {&_swigt__p_libnet_AddShare, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_libnet_BecomeDC[] = { {&_swigt__p_libnet_BecomeDC, 0, 0, 0},{0, 0, 0, 0}};
@ -4040,11 +4127,24 @@ static swig_cast_info _swigc__p_libnet_UserList[] = { {&_swigt__p_libnet_UserLi
static swig_cast_info _swigc__p_libnet_context[] = { {&_swigt__p_libnet_context, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_libnet_samsync_ldb[] = { {&_swigt__p_libnet_samsync_ldb, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_loadparm_context[] = { {&_swigt__p_loadparm_context, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_loadparm_service[] = { {&_swigt__p_loadparm_service, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_param_context[] = { {&_swigt__p_param_context, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_param_opt[] = { {&_swigt__p_param_opt, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_param_section[] = { {&_swigt__p_param_section, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_long_long[] = { {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info *swig_cast_initial[] = {
_swigc__p_TALLOC_CTX,
_swigc__p_char,
_swigc__p_cli_credentials,
_swigc__p_event_context,
_swigc__p_int,
_swigc__p_ldb_context,
_swigc__p_libnet_AddShare,
_swigc__p_libnet_BecomeDC,
@ -4076,6 +4176,17 @@ static swig_cast_info *swig_cast_initial[] = {
_swigc__p_libnet_context,
_swigc__p_libnet_samsync_ldb,
_swigc__p_loadparm_context,
_swigc__p_loadparm_service,
_swigc__p_long_long,
_swigc__p_param_context,
_swigc__p_param_opt,
_swigc__p_param_section,
_swigc__p_short,
_swigc__p_signed_char,
_swigc__p_unsigned_char,
_swigc__p_unsigned_int,
_swigc__p_unsigned_long_long,
_swigc__p_unsigned_short,
};

View File

@ -33,6 +33,7 @@ extern void init_tdb(void);
extern void init_dcerpc(void);
extern void init_events(void);
extern void inituuid(void);
extern void init_net(void);
static struct _inittab py_modules[] = { STATIC_LIBPYTHON_MODULES };