LdapConnection.Bind Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應