mirror of
https://github.com/samba-team/samba.git
synced 2025-11-11 00:23:51 +03:00
r2253: Add test program, as small example of what's going on.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
fdb675bbad
commit
fd31ae38df
@@ -112,6 +112,8 @@ uint32 get_uint32_property(PyObject *dict, char *key)
|
||||
|
||||
%types(struct dcerpc_pipe *);
|
||||
|
||||
%rename(pipe_connect) dcerpc_pipe_connect;
|
||||
|
||||
NTSTATUS dcerpc_pipe_connect(struct dcerpc_pipe **OUT,
|
||||
const char *binding,
|
||||
const char *pipe_uuid,
|
||||
|
||||
13
source/scripting/swig/test
Executable file
13
source/scripting/swig/test
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import dcerpc
|
||||
import gc
|
||||
gc.set_debug(gc.DEBUG_LEAK)
|
||||
|
||||
handle = dcerpc.pipe_connect("ncacn_np:win2k3dc",
|
||||
dcerpc.DCERPC_SAMR_UUID, dcerpc.DCERPC_SAMR_VERSION,
|
||||
"win2k3dom", "administrator", "penguin")
|
||||
|
||||
connect = {"system_name": "win2k3dc", "access_mask": 12345}
|
||||
|
||||
print dcerpc.samr_Connect2(handle, connect)
|
||||
Reference in New Issue
Block a user