示例#1
0
        public RPCWorker(string strIpAddress, int destinationPort, string userName, string password, AuthenticationLevelType authenticationLevelType,
                         SecurityProviderType securityProviderType)
        {
            RpcTransport            = new RpcTransportOnTcp(strIpAddress, destinationPort);
            SecurityProviderType    = securityProviderType;
            AuthenticationLevelType = authenticationLevelType;

            if (SecurityProviderType == SecurityProviderType.WINNT)
            {
                NTLMClient = new NTLMClient();
            }
            UserName = userName;
            Password = password;
        }
示例#2
0
 public RPCWorker(string ipAddress, string strNamePipe, string userName, string password)
 {
     RpcTransport            = new RpcTransportOnPipe(ipAddress, strNamePipe, userName, password);
     SecurityProviderType    = SecurityProviderType.NONE;
     AuthenticationLevelType = AuthenticationLevelType.NONE;
 }