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 national
You can learn more by invoking the command with the --help option
vcf2ldif --help
Metadata
Release files for vcf2ldif 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vcf2ldif-0.1.0.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vcf2ldif-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.7 kB
Release files / vcf2ldif-0.1.0.tar.gz
| Download URL | vcf2ldif-0.1.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
790dc0265530cf979ecec58c0c076c2f149b41db77bd31cf9ab2d95509f3e6b9
|
|
BLAKE2b-256 checksum How to use checksums |
c2cd5826f91a416a971465005b8d32d3534ecf4f7aba46b31815b4f3ac1aa778
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / vcf2ldif-0.1.0-py3-none-any.whl
| Download URL | vcf2ldif-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
406a006c179324f4e162caa4629251c9f1f1c85d56a05e8109d8f116645ad4b6
|
|
BLAKE2b-256 checksum How to use checksums |
8d34279c777381205c3fc85ba305477dcf64ac92a5f8536ea0e9d748e91af27f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|