Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.
/ caiman Public archive

This is a tool for converting LDIF (LDAP) data into standard vCard4 data, and then downloading it to services or applications that are compatible with the vCard4 standard.

License

Notifications You must be signed in to change notification settings

xorcare/caiman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

caiman

Build Status Go Report Card

This is a tool for converting LDIF (LDAP) data into standard vCard4 data, and then downloading it to services or applications that are compatible with the vCard4 standard.

The tool is mainly focused on the Microsoft AD product, but can be used with other LDAPs, with possible limitations.

Installation

go get github.com/xorcare/caiman/cmd/caiman

Command line interface, CLI

caiman is a tool to convert people data from LDAP(LDIF) format to vCard4 contact format

Usage:
  caiman [flags]

Examples:
caiman < person.ldif > person.vcf
caiman --config-file ~/.caiman.yaml < person.ldif > person.vcf
caiman --config-dump > .caiman.yaml
cat person.ldif | caiman > person.vcf
cat person.ldif | caiman | tee person.vcf

Flags:
  -d, --config-dump          print to standard output all configuration values, it prints configuration data in YAML format
  -f, --config-file string   the settings file from which the settings will be loaded
  -h, --help                 help for caiman

Example of a command to convert LDAP to vCard:

$ caiman < person.ldif > person.vcf 
2019/01/31 21:01:44 total entries 1030
2019/01/31 21:01:44 skipped 1 entries because it is nil
2019/01/31 21:01:44 skipped 5 entries because bad count of filled fields
2019/01/31 21:01:44 successfully processed 1024 entries

Example of a command to export data from LDAP:

ldapsearch -x -h example.com -D "DOMAIN\user.name" -LL -W -b 'DC=example,DC=com' '(objectClass=person)' | tee person.ldif

License

© Vasiliy Vasilyuk, 2019-2020

Released under the BSD 3-Clause License.

About

This is a tool for converting LDIF (LDAP) data into standard vCard4 data, and then downloading it to services or applications that are compatible with the vCard4 standard.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published