ldif2json
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
- Fork it (https://github.com/your-github-user/ldif2json/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- joatca - creator and maintainer
Repository
ldif2json
Owner
Statistic
- 4
- 1
- 0
- 0
- 0
- over 4 years ago
- July 9, 2020
License
GNU General Public License v3.0
Links
Synced at
Thu, 07 Nov 2024 13:23:08 GMT
Languages