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.6.tar.gz
.
File metadata
- Download URL: vcf2ldif-0.0.6.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 | 8d825ec42b8a46315b64f8b5c6f7492d169ef1f3b0702a566d0bc5f8defbb6a1 |
|
MD5 | 2e62f8ac0dce60495b69ea348dbfd80d |
|
BLAKE2b-256 | ae23133c3cb8c9d6b89518a83b17186f778807029ac6a1153e7e8cd642c1193d |
File details
Details for the file vcf2ldif-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: vcf2ldif-0.0.6-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 | 4f3def406614a467dad40904bced03f591075c3784dc72ae62d52afe4ba72f80 |
|
MD5 | 1162461c958123f37475d9394c2f17ce |
|
BLAKE2b-256 | 969931bc851ee372412596a218c2505fa19ae9c8c96065cdf05b90c01fdacb09 |