Version:

MarketplaceSupport

Converting LDIF Files to CSV

This chapter describes how to convert an LDIF file into a CSV file using the REST API.


ldif-to-csv

This command converts an LDIF file into a CSV file.

Usage
ldif-to-csv -csv <csv> -ldif <ldif> [-returnattributes <returnattributes>]

Command Arguments

- csv <csv>
[required] The path to a CSV file. If the file exists, it will be overwritten.

- ldif <ldif>
[required] The path to an LDIF file.

- returnattributes <returnattributes>
Optional comma-separated list of specified return attributes.

REST (ADAP) Example

In the following example, a request is made to generate a CSV file containing three return attributes.

https://<rli_server_name>:8090/adap/util?action=vdsconfig&commandname=ldif-to-csv&csv=c:/radiantone/vds/vds_server/ldif/export/csvfile.csv&ldif=c:/radiantone/vds/vds_server/ldif/export/accounting_companydirectory.ldif&returnattributes=dn,entrydn,homephone

IN THIS PAGE

  • ldif-to-csv