Skip to content
forked from joatca/ldif2json

Simple tool to convert LDAP Data Interchange Format (LDIF) to JSON

License

Notifications You must be signed in to change notification settings

dexterg/ldif2json

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ldif2json

Convert LDIF output from ldapsearch or slapcat to JSON suitable for easier processing with tools like jq, mlr or other scripts.

Installation

Install the Crystal compiler (and shards tool) and optionally Pandoc if you need to edit the manpage, then run

make
sudo make install

Usage

ldapsearch [ options ] | ldif2json >data.json

Documentation

See doc/ldif2json.md

Example

ldapsearch [options] 'uid=*' | ldif2json --flatten | jq 'select(.cn | tostring | test("Smith$")) | .dn'

Contributing

  1. Fork it (https://github.com/your-github-user/ldif2json/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • joatca - creator and maintainer

About

Simple tool to convert LDAP Data Interchange Format (LDIF) to JSON

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Crystal 97.6%
  • Makefile 2.4%