![]() |
VOOZH | about |
The CData Excel Add-In for LDAP provides formulas that can edit, save, and delete LDAP data. The following three steps show how you can automate the following task: Search LDAP objects for a user-specified value and then organize the results into an Excel spreadsheet.
The syntax of the CDATAQUERY formula is the following:
=CDATAQUERY(Query, [Connection], [Parameters], [ResultLocation]);
This formula requires three inputs:
Connection: Either the connection name, such as LDAPConnection1, or a connection string. The connection string consists of the required properties for connecting to LDAP objects, separated by semicolons.
To establish a connection, the following properties under the Authentication section must be provided:
BaseDN: This will limit the scope of LDAP searches to the height of the distinguished name provided.
Note: Specifying a narrow BaseDN may greatly increase performance; for example, cn=users,dc=domain will only return results contained within cn=users and its children.
The procedure below results in a spreadsheet that organizes all the formula inputs in the first column.
=CDATAQUERY("SELECT * FROM User WHERE CN = '"&B5&"'","User="&B1&";Password="&B2&";Server="&B3&";Port="&B4&";Provider=LDAP",B6)
👁 Formula inputs used in this example. (Google Apps is shown.)Download a free trial of the Excel Add-In for LDAP to get started:
Download NowLearn more:
👁 LDAP IconThe LDAP Excel Add-In is a powerful tool that allows you to connect with live LDAP directory services, directly from Microsoft Excel.
Use Excel to read, write, and update LDAP objects. Perfect for mass imports / exports / updates, data cleansing & de-duplication, Excel based data analysis, and more!