示例#1
0
 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);
 }
示例#2
0
 /// <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);
 }
示例#3
0
 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);
 }
示例#4
0
 /// <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);
 }
示例#5
0
 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);
 }