Skip to main content

This tool is designed to convert *.vcf (vCard) contact files to *.ldif file, for further creation of shared phone books on LDAP server.

Project description

vCard to ldif converter

This tool is designed to convert *.vcf (vCard) contact files to *.ldif file, for further creation of shared phone books on LDAP server.

Installation

pip install vcf2ldif

Usage

vcf2ldif \
    --input-file path/to/input_file.vcf \
    --root-dn ou=adressbook,dc=example,dc=com \
    --output-file path/to/output_file.ldif

You can import the resulting ldif file into your LDAP server (e.g. OpenLDAP) with the following command:

 ldapmodify -c -D "cn=admin,dc=example,dc=com" -W -f path/to/output_file.ldif

When converting, you can also format phone numbers according to the following standards:

  • e164 (e.g.: +18868886421) by adding the option --format-number e164
  • international (e.g.: +1 886-888-6421) by adding the option --format-number international
  • national (e.g.: (e.g.: (886) 888-6421) by adding the option --format-number rnational

You can learn more by invoking the command with the --help option

vcf2ldif --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vcf2ldif-0.0.6.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

vcf2ldif-0.0.6-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page