#!/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": 12345} print dcerpc.samr_Connect2(handle, connect)