61 references to ContextOptions
System.DirectoryServices.AccountManagement (61)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (3)
24public ADAMStoreCtx(DirectoryEntry ctxBase, bool ownCtxBase, string username, string password, string serverName, ContextOptions options) : base(ctxBase, ownCtxBase, username, password, options) 186if (((this.contextOptions & ContextOptions.Signing) != 0) && 187((this.contextOptions & ContextOptions.Sealing) != 0))
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (1)
700ContextOptions remoteOptions = DefaultContextOptions.ADDefaultContextOption;
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (3)
38protected ContextOptions contextOptions; 280public ADStoreCtx(DirectoryEntry ctxBase, bool ownCtxBase, string username, string password, ContextOptions options) 2129ContextOptions remoteOptions = DefaultContextOptions.ADDefaultContextOption;
System\DirectoryServices\AccountManagement\AD\SDSCache.cs (1)
38public PrincipalContext GetContext(string name, NetCred credentials, ContextOptions contextOptions)
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (6)
153internal static AuthenticationTypes MapOptionsToAuthTypes(ContextOptions options) 157if ((options & ContextOptions.SimpleBind) != 0) 160if ((options & ContextOptions.ServerBind) != 0) 163if ((options & ContextOptions.SecureSocketLayer) != 0) 166if ((options & ContextOptions.Signing) != 0) 169if ((options & ContextOptions.Sealing) != 0)
System\DirectoryServices\AccountManagement\AuthZSet.cs (2)
20ContextOptions contextOptions, 491private readonly ContextOptions _contextOptions;
System\DirectoryServices\AccountManagement\constants.cs (6)
23internal const ContextOptions MachineDefaultContextOption = ContextOptions.Negotiate; 24internal const ContextOptions ADDefaultContextOption = ContextOptions.Negotiate | ContextOptions.Signing | ContextOptions.Sealing;
System\DirectoryServices\AccountManagement\Context.cs (37)
66private const ContextOptions defaultContextOptionsNegotiate = ContextOptions.Signing | ContextOptions.Sealing | ContextOptions.Negotiate; 67private const ContextOptions defaultContextOptionsSimple = ContextOptions.SecureSocketLayer | ContextOptions.SimpleBind; 147private bool BindLdap(NetworkCredential creds, ContextOptions contextOptions) 150bool useSSL = (ContextOptions.SecureSocketLayer & contextOptions) > 0; 221private void lockedLdapBind(LdapConnection current, NetworkCredential creds, ContextOptions contextOptions) 223current.AuthType = ((ContextOptions.SimpleBind & contextOptions) > 0 ? AuthType.Basic : AuthType.Negotiate); 224current.SessionOptions.Signing = ((ContextOptions.Signing & contextOptions) > 0 ? true : false); 225current.SessionOptions.Sealing = ((ContextOptions.Sealing & contextOptions) > 0 ? true : false); 309public bool Validate(string userName, string password, ContextOptions connectionMethod) 368public PrincipalContext(ContextType contextType, string name, string container, ContextOptions options) : 381ContextType contextType, string name, string container, ContextOptions options, string userName, string password) 389if ((options & ~(ContextOptions.Signing | ContextOptions.Negotiate | ContextOptions.Sealing | ContextOptions.SecureSocketLayer | ContextOptions.SimpleBind | ContextOptions.ServerBind)) != 0) 390throw new InvalidEnumArgumentException(nameof(options), (int)options, typeof(ContextOptions)); 392if (contextType == ContextType.Machine && ((options & ~ContextOptions.Negotiate) != 0)) 398(((options & (ContextOptions.Negotiate | ContextOptions.SimpleBind)) == 0) || 399(((options & (ContextOptions.Negotiate | ContextOptions.SimpleBind)) == ((ContextOptions.Negotiate | ContextOptions.SimpleBind)))))) 478public ContextOptions Options 533public bool ValidateCredentials(string userName, string password, ContextOptions options) 542if (options != ContextOptions.Negotiate && _contextType == ContextType.Machine) 710((ContextOptions.SecureSocketLayer & _options) > 0 ? _serverProperties.portSSL : _serverProperties.portLDAP); 1036private readonly ContextOptions _options; 1078bool useSSL = (_options & ContextOptions.SecureSocketLayer) > 0; 1208private static ContextOptions GetDefaultOptionForStore(ContextType storeType)
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (2)
27private readonly ContextOptions _contextOptions; 158public SAMStoreCtx(DirectoryEntry ctxBase, bool ownCtxBase, string username, string password, ContextOptions options)