summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/test
blob: f90cef747f1caf9d5c975f31e060b5abcca66dd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/python

import dcerpc

handle = dcerpc.pipe_connect("ncacn_np:win2k3dc",
	dcerpc.DCERPC_SAMR_UUID, dcerpc.DCERPC_SAMR_VERSION,
	"win2k3dom", "administrator", "penguin")

connect = {"system_name": "win2k3dc", "access_mask": 0x02000000}

print dcerpc.samr_Connect2(handle, connect)