Skip to content
| Marketplace
Sign in
Visual Studio>Controls>LDAP ADO.NET Provider
LDAP ADO.NET Provider

LDAP ADO.NET Provider

CDATA SOFTWARE

|
1,728 clicks
| (0) | Free Trial
Easily connect .NET applications with LDAP directory servers! The LDAP Data Provider makes these LDAP services look like SQL tables in your applications. With the CData ADO.NET Provider for LDAP developers can simply DataBind to data, just like using SQL Server.
Get Started

Powerful LDAP Application Integration

  • DataBind to any standard LDAP server, including Active Directory, using standard Visual Studio wizards.
  • Comprehensive support for CRUD (Create, Read, Update, and Delete) operations.
  • Integrate .NET applications with LDAP authentication and directory services!

The CData ADO.NET Provider for LDAP offers the most natural way to access LDAP data from any .NET application. Simply use LDAP Data Provider objects to connect and access data just as you would access any traditional database. You will be able to use the LDAP Data Provider through Visual Studio Server Explorer, in code through familiar classes, and in data controls like DataGridView, GridView, DataSet, etc.

Using the LDAP Data Provider

The LDAP Data Provider wraps the complexity of accessing LDAP services in an easy-to-integrate, fully-managed ADO.NET Data Provider. Applications then access LDAP through the LDAP Data Provider with simple Transact-SQL.


 

The CData ADO.NET Provider for LDAP hides the complexity of accessing data and provides additional powerful security features, smart caching, batching, socket management, and more.

Working with DataAdapters, DataSets, DataTables, etc.

The LDAP Data Provider has the same ADO.NET architecture as the native .NET data providers for SQL Server and OLEDB including: LDAPConnection, LDAPCommand, LDAPDataAdapter, LDAPDataReader, LDAPDataSource, LDAPParameter, and LDAPTransaction. Because of this you can now access LDAP data in an easy, familiar way.

For example:

using (LDAPConnection conn = new LDAPConnection("...")) {
string select = "SELECT * FROM Objects";
LDAPCommand cmd = new LDAPCommand(select, conn);
LDAPDataAdapter adapter = new LDAPDataAdapter(cmd);
using (adapter) {
DataTable table = new DataTable();
adapter.Fill(table);       
...
}
}

More Than Read-Only: Full Update/CRUD Support

LDAP Data Provider goes beyond read-only functionality to deliver full support for Create, Read Update, and Delete operations (CRUD). Your end-users can interact with the data presented by the LDAP Data Provider as easily as interacting with a database table.

using (LDAPConnection connection = new LDAPConnection(connectionString)) {
LDAPDataAdapter dataAdapter = new LDAPDataAdapter(
"SELECT Id, Where FROM Objects", connection);
 
dataAdapter.UpdateCommand = new LDAPCommand(
"UPDATE Objects SET Where = @Where " +
"WHERE Id = @ID", connection);
 
dataAdapter.UpdateCommand.Parameters.AddWithValue("@Where", "Where");
dataAdapter.UpdateCommand.Parameters.AddWithValue("@Id", "80000173-1387137645");
 
DataTable ObjectsTable = new DataTable();
dataAdapter.Fill(ObjectsTable);
 
DataRow firstrow = ObjectsTable.Rows[0];
firstrow["Where"] = "New Location";
 
dataAdapter.Update(ObjectsTable);
}
 

Call: (800) 235-7250

Contact Us By Email

Online Documentation

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft