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