System.DirectoryServices.Protocols 8.0.0
About
System.DirectoryServices.Protocols provides a managed implementation of Lightweight Directory Access Protocol (LDAP) version 3 and Directory Services Markup Language (DSML) version 2.0 (V2) standards.
It primarily uses the LdapConnection type for interacting with LDAP servers, using system native libraries to establish TCP/IP or UDP LDAP connections.
Supports both Windows and Unix, but certain features, such as setting client or server certificate options, are not available on Unix.
Key Features
- Managed implementation of LDAP v3 and DSML V2 standards.
How to Use
Using the LdapConnection type, you can establish connections to LDAP servers and issue requests.
Here is a simple example:
using System.DirectoryServices.Protocols;
// Create a new LdapConnection instance using the server URL.
using (LdapConnection connection = new LdapConnection("ldap.example.com")) {
// Some credentials
connection.Credential = new NetworkCredential(dn, password);
// Connect to the server
connection.Bind();
// Perform LDAP operations
}
Main Types
The main types provided by this library are:
System.DirectoryServices.Protocols.LdapConnectionSystem.DirectoryServices.Protocols.DirectoryAttributeSystem.DirectoryServices.Protocols.DirectoryOperationSystem.DirectoryServices.Protocols.DirectoryRequestSystem.DirectoryServices.Protocols.DirectoryResponse
Additional Documentation
Related Packages
Feedback & Contributing
System.DirectoryServices.Protocols is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Showing the top 20 packages that depend on System.DirectoryServices.Protocols.
| Packages | Downloads |
|---|---|
|
Microsoft.AspNetCore.Authentication.Negotiate
ASP.NET Core authentication handler used to authenticate requests using Negotiate, Kerberos, or NTLM.
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/da7e9894ce22ef8cc02e5acc56e95a6f8cf8f644
|
1,319 |
.NET 6.0
- No dependencies.
.NET 7.0
- No dependencies.
.NET 8.0
- No dependencies.
.NET Standard 2.0
- System.Security.Principal.Windows (>= 5.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 8.0.0 | 1,506 | 05/09/2025 |