summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMantas Mikulėnas <grawity@gmail.com>2024-01-04 10:41:20 +0200
committerMantas Mikulėnas <grawity@gmail.com>2024-01-04 10:41:20 +0200
commit02e972741f872a1c7baa807d46f4141b6e5bd7b8 (patch)
tree601dc1a995a9cb46287f6b1aa1033401e2d5430f
parentad18da0591ceef9cd58906944dcd97b3fcd17e10 (diff)
add ldifls helper tool
-rwxr-xr-xldifls6
1 files changed, 5 insertions, 1 deletions
diff --git a/ldifls b/ldifls
index 8dca4f4..e8991bb 100755
--- a/ldifls
+++ b/ldifls
@@ -7,10 +7,14 @@ use Net::LDAP::Util qw(escape_dn_value ldap_explode_dn);
sub usage {
print "$_\n" for
- "Usage: ldapsearch -LLL | ldifls [-s SEP] [-S SEP]",
+ "Usage: ldapsearch -LLL ... | ldifls [-s SEP] [-S SEP]",
"", #
" -s, --rdn-separator SEP Separator between DN elements (RDNs)",
" -S, --attr-separator SEP Separator between RDN attributes (default '+')",
+ "",
+ "To use with treeify:",
+ "",
+ " cat foo.ldif | ldifls -s \$'\\t' -S \", \" | treeify -s \$'\\t' -R",
;
}