-
-
Save vkushnir/5d4f5477f5889d53717739a130f1384b to your computer and use it in GitHub Desktop.
ldapsearch with Base64 decode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
/usr/bin/ldapsearch -o ldif-wrap=no "$@" | perl -MMIME::Base64 -Mutf8 -pe 's/^([-a-zA-Z0-9;]+):(:\s+)(\S+)$/$1.$2.&decode_base64($3)/e' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment