LdapConnection 类
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
LdapConnection 类创建与 Microsoft Active Directory 域服务或 LDAP 服务器的 TCP/IP 或 UDP LDAP 连接。
public ref class LdapConnection : System::DirectoryServices::Protocols::DirectoryConnection, IDisposable
public class LdapConnection : System.DirectoryServices.Protocols.DirectoryConnection, IDisposable
type LdapConnection = class
inherit DirectoryConnection
interface IDisposable
Public Class LdapConnection
Inherits DirectoryConnection
Implements IDisposable
- 继承
- 实现
如果 LdapConnection 对象的 ClientCertificates 属性和 LdapSessionOptions 对象的 QueryClientCertificate 属性均已设置,则忽略 ClientCertificates 属性中指定的证书。
Ldap |
LdapConnection(LdapDirectoryIdentifier, NetworkCredential, AuthType) 构造函数使用指定的目录标识符、网络凭据和身份验证类型创建 LdapConnection 类的实例。 |
Ldap |
LdapConnection(LdapDirectoryIdentifier, NetworkCredential) 构造函数使用指定的目录标识符和网络凭据创建 LdapConnection 类的实例。 使用协商身份验证。 |
Ldap |
LdapConnection(LdapDirectoryIdentifier) 构造函数使用指定的目录标识符创建 LdapConnection 类的实例。 登录凭据和协商身份验证用于连接到 LDAP 服务器。 |
Ldap |
LdapConnection(String) 构造函数使用指定的服务器创建 LdapConnection 类的实例。 |
Auth |
AuthType 属性包含支持的身份验证类型。 |
Auto |
AutoBind 属性指定是否允许自动绑定。 |
Client |
获取一个或多个要发送用于身份验证的客户端证书。 (继承自 DirectoryConnection) |
Credential |
Credential 属性包含对象的网络凭据。 |
Directory |
获取应连接到的域或服务器。 (继承自 DirectoryConnection) |
Session |
SessionOptions 属性包含一个指定会话选项的 LdapSessionOptions 对象。 |
Timeout |
Timeout 属性包含 LdapConnection 超时前的时间长度(以秒为单位)。 |
产品 | 版本 |
---|---|
.NET | 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 |