LdapConnection LdapConnection LdapConnection LdapConnection Class

Definizione

La classe LdapConnection crea una connessione TCP/IP o UDP LDAP a Servizi di dominio Microsoft Active Directory o a un server LDAP.The LdapConnection class creates a TCP/IP or UDP LDAP connection to Microsoft Active Directory Domain Services or an LDAP server.

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
Ereditarietà
Implementazioni

Commenti

Se la ClientCertificates LdapConnection proprietà dell' QueryClientCertificate oggettoeClientCertificates della proprietà nell' oggettosonoentrambeimpostate,ilcertificatospecificatonellaproprietàvieneignorato.LdapSessionOptionsIf the ClientCertificates property on the LdapConnection object and QueryClientCertificate property on the LdapSessionOptions object are both set, the certificate specified in the ClientCertificates property is ignored.

Costruttori

LdapConnection(LdapDirectoryIdentifier) LdapConnection(LdapDirectoryIdentifier) LdapConnection(LdapDirectoryIdentifier) LdapConnection(LdapDirectoryIdentifier)

Il costruttore LdapConnection(LdapDirectoryIdentifier) crea un'istanza della classe LdapConnection tramite l'identificatore di directory specificato.The LdapConnection(LdapDirectoryIdentifier) constructor creates an instance of the LdapConnection class using the specified directory identifier. Per la connessione al server LDAP vengono utilizzate le credenziali di accesso e l'autenticazione di negoziazione.The logon credentials and the Negotiate Authentication are used to connect to the LDAP server.

LdapConnection(LdapDirectoryIdentifier, NetworkCredential) LdapConnection(LdapDirectoryIdentifier, NetworkCredential) LdapConnection(LdapDirectoryIdentifier, NetworkCredential) LdapConnection(LdapDirectoryIdentifier, NetworkCredential)

Il costruttore LdapConnection(LdapDirectoryIdentifier, NetworkCredential) crea un'istanza della classe LdapConnection tramite l'identificatore di directory e le credenziali di rete specificati.The LdapConnection(LdapDirectoryIdentifier, NetworkCredential) constructor creates an instance of the LdapConnection class using the specified directory identifier and network credentials. È utilizzata l'autenticazione di negoziazione.Negotiate Authentication is used.

LdapConnection(LdapDirectoryIdentifier, NetworkCredential, AuthType) LdapConnection(LdapDirectoryIdentifier, NetworkCredential, AuthType) LdapConnection(LdapDirectoryIdentifier, NetworkCredential, AuthType) LdapConnection(LdapDirectoryIdentifier, NetworkCredential, AuthType)

Il costruttore LdapConnection(LdapDirectoryIdentifier, NetworkCredential, AuthType) crea un'istanza della classe LdapConnection utilizzando l'identificatore di directory, le credenziali di rete e il tipo di autenticazione specificati.The LdapConnection(LdapDirectoryIdentifier, NetworkCredential, AuthType) constructor creates an instance of the LdapConnection class using the specified directory identifier, network credentials, and authentication type.

LdapConnection(String) LdapConnection(String) LdapConnection(String) LdapConnection(String)

Il costruttore LdapConnection(String) crea un'istanza della classe LdapConnection usando il server specificato.The LdapConnection(String) constructor creates an instance of the LdapConnection class using the specified server.

Proprietà

AuthType AuthType AuthType AuthType

La proprietà AuthType contiene i tipi di autenticazione supportati.The AuthType property contains the supported authentication types.

AutoBind AutoBind AutoBind AutoBind

La proprietà AutoBind specifica se è consentita un'associazione automatica.The AutoBind property specifies whether an automatic bind is allowed.

ClientCertificates ClientCertificates ClientCertificates ClientCertificates

La proprietà ClientCertificates specifica uno o più certificati client da inviare per l'autenticazione.The ClientCertificates property specifies one or more client certificates to send for authentication.

(Inherited from DirectoryConnection)
Credential Credential Credential Credential

La proprietà Credential contiene le credenziali di rete per l'oggetto.The Credential property contains the network credentials for the object.

Directory Directory Directory Directory

La proprietà Directory specifica il dominio o il server a cui deve essere effettuata la connessione.The Directory property specifies the domain or the server to which the connection should be made.

(Inherited from DirectoryConnection)
SessionOptions SessionOptions SessionOptions SessionOptions

La proprietà SessionOptions contiene un oggetto LdapSessionOptions che specifica le opzioni di sessione.The SessionOptions property contains an LdapSessionOptions object that specifies the session options.

Timeout Timeout Timeout Timeout

La proprietà Timeout contiene il periodo di tempo, espresso in secondi, prima del timeout di LdapConnection.The Timeout property contains the length of time, in seconds, before the LdapConnection times out.

Metodi

Abort(IAsyncResult) Abort(IAsyncResult) Abort(IAsyncResult) Abort(IAsyncResult)

Il metodo Abort(IAsyncResult) annulla la richiesta asincrona.The Abort(IAsyncResult) method cancels the asynchronous request.

BeginSendRequest(DirectoryRequest, PartialResultProcessing, AsyncCallback, Object) BeginSendRequest(DirectoryRequest, PartialResultProcessing, AsyncCallback, Object) BeginSendRequest(DirectoryRequest, PartialResultProcessing, AsyncCallback, Object) BeginSendRequest(DirectoryRequest, PartialResultProcessing, AsyncCallback, Object)

Invia dati in modo asincrono al server.Sends data asynchronously to the server.

BeginSendRequest(DirectoryRequest, TimeSpan, PartialResultProcessing, AsyncCallback, Object) BeginSendRequest(DirectoryRequest, TimeSpan, PartialResultProcessing, AsyncCallback, Object) BeginSendRequest(DirectoryRequest, TimeSpan, PartialResultProcessing, AsyncCallback, Object) BeginSendRequest(DirectoryRequest, TimeSpan, PartialResultProcessing, AsyncCallback, Object)

Invia dati in modo asincrono al server.Sends data asynchronously to the server.

Bind() Bind() Bind() Bind()

Il metodo Bind() invia un'associazione LDAP utilizzando le credenziali correnti.The Bind() method sends an LDAP bind using the current credentials.

Bind(NetworkCredential) Bind(NetworkCredential) Bind(NetworkCredential) Bind(NetworkCredential)

Il metodo Bind(NetworkCredential) invia un'associazione LDAP utilizzando la classe NetworkCredential specificata.The Bind(NetworkCredential) method sends an LDAP bind using the specified NetworkCredential.

Dispose() Dispose() Dispose() Dispose()

Il metodo Dispose() chiude e rilascia l'handle LDAP.The Dispose() method closes and releases the LDAP handle.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Il metodo Dispose(Boolean) chiude la connessione ed eventualmente rilascia l'handle LDAP.The Dispose(Boolean) method closes the connection and optionally releases the LDAP handle.

EndSendRequest(IAsyncResult) EndSendRequest(IAsyncResult) EndSendRequest(IAsyncResult) EndSendRequest(IAsyncResult)

Il metodo EndSendRequest(IAsyncResult) completa una richiesta asincrona.The EndSendRequest(IAsyncResult) method completes an asynchronous request.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina se l'oggetto specificato è uguale all'oggetto corrente.Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize() Finalize() Finalize() Finalize()

Il metodo Finalize() consente a un oggetto LdapConnection di tentare di liberare risorse ed eseguire altre operazioni di pulitura prima che l'oggetto LdapConnection sia recuperato dalla procedura di Garbage Collection.The Finalize() method allows an LdapConnection object to attempt to free resources and perform other cleanup operations before the LdapConnection object is reclaimed by garbage collection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Funge da funzione hash predefinita.Serves as the default hash function.

(Inherited from Object)
GetPartialResults(IAsyncResult) GetPartialResults(IAsyncResult) GetPartialResults(IAsyncResult) GetPartialResults(IAsyncResult)

Il metodo GetPartialResults(IAsyncResult) recupera risultati parziali di un'operazione asincrona.The GetPartialResults(IAsyncResult) method retrieves partial results of an asynchronous operation.

GetType() GetType() GetType() GetType()

Ottiene l'oggetto Type dell'istanza corrente.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficiale dell'oggetto Object corrente.Creates a shallow copy of the current Object.

(Inherited from Object)
SendRequest(DirectoryRequest) SendRequest(DirectoryRequest) SendRequest(DirectoryRequest) SendRequest(DirectoryRequest)

Il metodo SendRequest(DirectoryRequest) invia un unico oggetto DirectoryRequest come operazione LDAP v3.The SendRequest(DirectoryRequest) method sends a single DirectoryRequest as an LDAP v3 operation.

SendRequest(DirectoryRequest, TimeSpan) SendRequest(DirectoryRequest, TimeSpan) SendRequest(DirectoryRequest, TimeSpan) SendRequest(DirectoryRequest, TimeSpan)

Il metodo SendRequest(DirectoryRequest, TimeSpan) invia un unico oggetto DirectoryRequest come operazione LDAP v3.The SendRequest(DirectoryRequest, TimeSpan) method sends a single DirectoryRequest as an LDAP v3 operation.

ToString() ToString() ToString() ToString()

Restituisce una stringa che rappresenta l'oggetto corrente.Returns a string that represents the current object.

(Inherited from Object)

Si applica a