Editar

Compartir a través de


LdapConnection.Bind Method

Definition

Sends an LDAP bind.

Overloads

Bind(NetworkCredential)

The Bind(NetworkCredential) method sends an LDAP bind using the specified NetworkCredential.

Bind()

The Bind() method sends an LDAP bind using the current credentials.

Bind(NetworkCredential)

Source:
LdapConnection.cs
Source:
LdapConnection.cs
Source:
LdapConnection.cs
Source:
LdapConnection.cs

The Bind(NetworkCredential) method sends an LDAP bind using the specified NetworkCredential.

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)

Parameters

newCredential
NetworkCredential

A NetworkCredential object that specifies the credentials to use.

Exceptions

The object handle is not valid.

The error code returned by LDAP does not map to a ResultCode enumeration error code.

Either the ClientCertificates property specifies more than one client certificate to send for authentication, or the AuthType property is Anonymous and one or more credentials are supplied.

Applies to

Bind()

Source:
LdapConnection.cs
Source:
LdapConnection.cs
Source:
LdapConnection.cs
Source:
LdapConnection.cs

The Bind() method sends an LDAP bind using the current credentials.

public:
 void Bind();
public void Bind ();
member this.Bind : unit -> unit
Public Sub Bind ()

Exceptions

The object handle is not valid.

The error code returned by LDAP does not map to one of the ResultCode enumeration error codes.

Either the ClientCertificates property specifies more than one client certificate to send for authentication, or the AuthType property is Anonymous and one or more credentials are supplied.

Remarks

Binding is the step where the LDAP server authenticates the client and, if the client is successfully authenticated, allows the client access to the LDAP server based on that client's privileges. If a connection was created using ldap_connect, and if no binding function is called, on a LDAP v3 server, you run as anonymous.

Applies to