public LsaServer(RpceServerTransport rpceServer) { contextManager = new LsaContextManager(); rpceLayerServer = rpceServer; rpceLayerServer.RegisterInterface( LsaUtility.LSA_RPC_INTERFACE_UUID, LsaUtility.LSA_RPC_INTERFACE_MAJOR_VERSION, LsaUtility.LSA_RPC_INTERFACE_MINOR_VERSION); }
/// <summary> ///Constructor, initialize a Samr server.<para/> /// Create the instance will not listen for RPC calls, /// you should call StartTcp or StartNamedPipe /// to actually listen for RPC calls. /// </summary> /// <param name="rpceServer">the rpce transport that already set securityContextCreator and /// you intend to use as transport of your samr server</param> public SamrServer(RpceServerTransport rpceServer) { contextManager = new SamrContextManager(); rpceLayerServer = rpceServer; rpceLayerServer.RegisterInterface( SamrUtility.SAMR_RPC_INTERFACE_UUID, SamrUtility.SAMR_RPC_INTERFACE_MAJOR_VERSION, SamrUtility.SAMR_RPC_INTERFACE_MINOR_VERSION); }
public LsaServer(RpceSecurityContextCreatingEventHandler rpceServerSecurityContextCreator) { contextManager = new LsaContextManager(); rpceLayerServer = new RpceServerTransport(); rpceLayerServer.RegisterInterface( LsaUtility.LSA_RPC_INTERFACE_UUID, LsaUtility.LSA_RPC_INTERFACE_MAJOR_VERSION, LsaUtility.LSA_RPC_INTERFACE_MINOR_VERSION); rpceLayerServer.SetSecurityContextCreator(rpceServerSecurityContextCreator); }
/// <summary> /// Constructor, initialize a Samr server.<para/> /// Create the instance will not listen for RPC calls, /// you should call StartTcp or StartNamedPipe /// to actually listen for RPC calls. /// </summary> /// <param name="securityContextCreator">Server security creator</param> public SamrServer(RpceSecurityContextCreatingEventHandler securityContextCreator) { contextManager = new SamrContextManager(); rpceLayerServer = new RpceServerTransport(); rpceLayerServer.RegisterInterface( SamrUtility.SAMR_RPC_INTERFACE_UUID, SamrUtility.SAMR_RPC_INTERFACE_MAJOR_VERSION, SamrUtility.SAMR_RPC_INTERFACE_MINOR_VERSION); this.rpceLayerServer.SetSecurityContextCreator(securityContextCreator); }
public DrsrServer(RpceSecurityContextCreatingEventHandler rpceServerSecurityContextCreator) { contextManager = new DrsrContextManager(); rpceLayerServer = new RpceServerTransport(); rpceLayerServer.RegisterInterface( DrsrUtility.DRSUAPI_RPC_INTERFACE_UUID, DrsrUtility.DRSUAPI_RPC_INTERFACE_MAJOR_VERSION, DrsrUtility.DRSUAPI_RPC_INTERFACE_MINOR_VERSION); rpceLayerServer.RegisterInterface( DrsrUtility.DSAOP_RPC_INTERFACE_UUID, DrsrUtility.DSAOP_RPC_INTERFACE_MAJOR_VERSION, DrsrUtility.DSAOP_RPC_INTERFACE_MINOR_VERSION); rpceLayerServer.SetSecurityContextCreator(rpceServerSecurityContextCreator); }