public ADProviderCommonParameters() { this._formatType = ADProviderDefaults.PathFormat; this._server = ADProviderDefaults.Server; this._isGC = ADProviderDefaults.IsGC; this._authType = ADProviderDefaults.AuthType; }
public ADDriveInfo() : base(null) { this._formatType = ADProviderDefaults.PathFormat; this._authType = ADProviderDefaults.AuthType; this._isGC = ADProviderDefaults.IsGC; this._ssl = ADProviderDefaults.Ssl; this._encryption = ADProviderDefaults.Encryption; this._signing = ADProviderDefaults.Signing; }
public ADDriveInfo(string name, ProviderInfo provider, string root, string rootWithAbsoluteToken, string description, PSCredential credential) : base(name, provider, rootWithAbsoluteToken, description, credential) { this._formatType = ADProviderDefaults.PathFormat; this._authType = ADProviderDefaults.AuthType; this._isGC = ADProviderDefaults.IsGC; this._ssl = ADProviderDefaults.Ssl; this._encryption = ADProviderDefaults.Encryption; this._signing = ADProviderDefaults.Signing; this._rootWithoutAbsolutePathToken = root; }
static ADProviderDefaults() { ADProviderDefaults.PathFormat = ADPathFormat.X500; ADProviderDefaults.HostType = ADPathHostType.Server; ADProviderDefaults.Server = null; ADProviderDefaults.IsGC = false; ADProviderDefaults.AuthType = ADAuthType.Negotiate; ADProviderDefaults.Ssl = false; ADProviderDefaults.Encryption = true; ADProviderDefaults.Signing = true; ADProviderDefaults.ServerSearchSizeLimit = 0; ADProviderDefaults.ServerSearchPageSize = 0x100; ADProviderDefaults.SearchFilter = "(objectclass=*)"; ADProviderDefaults.InternalProviderSearchPageSize = 0x100; }
private AuthType GetAuthType(ADAuthType adpsAuthType) { AuthType authType = AuthType.Negotiate; if (adpsAuthType != ADAuthType.Negotiate) { if (adpsAuthType == ADAuthType.Basic) { authType = AuthType.Basic; } } else { authType = AuthType.Negotiate; } return authType; }