/// <summary> /// Constructor. /// </summary> public CifsClientContext() : base() { this.contextCollection = new CifsClientCollection(); this.messageSigningPolicy = MessageSigningPolicyValues.MessageSigningDisabled; this.plaintextAuthenticationPolicy = PlaintextAuthenticationPolicyValues.Disabled; this.lmAuthenticationPolicy = LMAuthenticationPolicyValues.Disabled; this.ntlmAuthenticationPolicy = NTLMAuthenticationPolicyValues.Disabled; }
/// <summary> /// Constructor. /// </summary> public CifsServerContext() { this.domainName = Environment.UserDomainName; this.serverName = Environment.MachineName; this.capabilities = Capabilities.NONE; this.globalTables = new CifsServerGlobalTables(); this.messageSigningPolicy = MessageSigningPolicyValues.MessageSigningDisabled; this.plaintextAuthenticationPolicy = PlaintextAuthenticationPolicyValues.Disabled; this.lmAuthenticationPolicy = LMAuthenticationPolicyValues.Disabled; this.ntlmAuthenticationPolicy = NTLMAuthenticationPolicyValues.NtlmEnabled | NTLMAuthenticationPolicyValues.NtlmV2Enabled; this.isContextUpdateEnabled = true; this.accountCredentials = new Collection<AccountCredential>(); this.nlmpServerSecurityContexts = new Collection<NlmpServerSecurityContext>(); //The following default values are based on windows implementation. this.maxNumberVcs = 1; this.maxBufferSize = 16644; this.maxRawSize = 65536; this.maxMpxCount = 50; }