LdapConnection.Bind 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
发送 LDAP 绑定。
重载
| 名称 | 说明 |
|---|---|
| Bind(NetworkCredential) |
Bind(NetworkCredential) 方法使用指定的 NetworkCredential发送 LDAP 绑定。 |
| Bind() |
Bind() 方法使用当前凭据发送 LDAP 绑定。 |
Bind(NetworkCredential)
- Source:
- LdapConnection.cs
- Source:
- LdapConnection.cs
- Source:
- LdapConnection.cs
- Source:
- LdapConnection.cs
Bind(NetworkCredential) 方法使用指定的 NetworkCredential发送 LDAP 绑定。
public:
void Bind(System::Net::NetworkCredential ^ newCredential);
public void Bind(System.Net.NetworkCredential newCredential);
member this.Bind : System.Net.NetworkCredential -> unit
Public Sub Bind (newCredential As NetworkCredential)
参数
- newCredential
- NetworkCredential
一个 NetworkCredential 对象,指定要使用的凭据。
例外
对象句柄无效。
LDAP 返回的错误代码不会映射到 ResultCode 枚举错误代码。
该 ClientCertificates 属性指定要发送的多个客户端证书进行身份验证,或者该 AuthType 属性为 Anonymous,并提供了一个或多个凭据。
适用于
Bind()
- Source:
- LdapConnection.cs
- Source:
- LdapConnection.cs
- Source:
- LdapConnection.cs
- Source:
- LdapConnection.cs
Bind() 方法使用当前凭据发送 LDAP 绑定。
public:
void Bind();
public void Bind();
member this.Bind : unit -> unit
Public Sub Bind ()
例外
对象句柄无效。
LDAP 返回的错误代码不映射到枚举错误代码之 ResultCode 一。
该 ClientCertificates 属性指定要发送的多个客户端证书进行身份验证,或者该 AuthType 属性为 Anonymous,并提供了一个或多个凭据。
注解
绑定是 LDAP 服务器对客户端进行身份验证的步骤,如果客户端成功进行身份验证,则允许客户端基于该客户端的权限访问 LDAP 服务器。
如果使用 创建 ldap_connect连接,并且未调用任何绑定函数,请在 LDAP v3 服务器上以匿名方式运行。