This documentation is archived and is not being maintained.
ContextOptions Enumeration
Visual Studio 2010
Specifies the options that are used for binding to the server. The application can set multiple options that are linked with a bitwise OR operation.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: System.DirectoryServices.AccountManagementAssembly: System.DirectoryServices.AccountManagement (in System.DirectoryServices.AccountManagement.dll)
| Member name | Description | |
|---|---|---|
| Negotiate | The client is authenticated by using either Kerberos or NTLM. When the user name and password are not provided, the Account Management API binds to the object by using the security context of the calling thread, which is either the security context of the user account under which the application is running or of the client user account that the calling thread represents. | |
| SimpleBind | The client is authenticated by using the Basic authentication. Caution Communications may be sent over the Internet in clear text if the SecureSocketsLayer option is not specified with simple bind. | |
| SecureSocketLayer | The channel is encrypted by using the Secure Sockets Layer (SSL). Active Directory requires that the Certificate Services be installed to support SSL. | |
| Signing | The integrity of the data is verified. This flag can only be used with the Negotiate context option and is not available with the simple bind option. | |
| Sealing | The data is encrypted by using Kerberos. This flag can only be used with the Negotiate context option and is not available with the simple bind option. | |
| ServerBind | Specify this flag when you use the domain context type if the application is binding to a specific server name. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: