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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file vcf2ldif-0.0.2.tar.gz
.
File metadata
- Download URL: vcf2ldif-0.0.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae35823cdb7eeeecca46a46523d5784ac37fec6bbe2a91801aa44cab235d17f0 |
|
MD5 | f13c2123d32ab4e07308673d968f163a |
|
BLAKE2b-256 | af0fe24dfff7fa920cd68f94b8f2379e8769cdaba4a44dddee3fd917fb89cd7a |
File details
Details for the file vcf2ldif-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: vcf2ldif-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bebd9ee126af40eb93c92f37f015e887cbbacac2cb7cceea55624a14c5d74f58 |
|
MD5 | 0449e003a7d6a2cbde5437ff1ef5ae7a |
|
BLAKE2b-256 | 4850914751461626d34b6511ce528ffdc3902b3bef04accb6147ecb81d1db584 |