Wednesday, April 15, 2015

converting base64 string in ldif file

e.g.:

 slapcat   | perl -MMIME::Base64 -n -00 -e 's/\n //g;s/(?<=:: )(\S+)/decode_base64($1)/eg;print'

From: http://www.perlmonks.org/bare/?node_id=963814

No comments: