From: Alex Dehnert Date: Mon, 24 Jan 2011 06:28:27 +0000 (-0500) Subject: Print the LDAP command-line X-Git-Url: https://www.dehnerts.com/gitweb/?p=user%2Falex%2Fsoftware%2Fmy-snippets.git;a=commitdiff_plain;h=de63ef4c27fb0a1c29bd5005d002fe66bea10ef2 Print the LDAP command-line Some large fraction of the times I use ldapfinger, I'm using it instead of reading the ldapsearch man page. Consequently, printing the commandline instead of requiring me to run "cat $(which ldapfinger)" would be convenient. --- diff --git a/ldapfinger b/ldapfinger index 0ed2581..8eb1185 100755 --- a/ldapfinger +++ b/ldapfinger @@ -2,5 +2,6 @@ for user in $@; do + echo ldapsearch -h ldap.mit.edu -b dc=mit,dc=edu uid=$user ldapsearch -h ldap.mit.edu -b dc=mit,dc=edu uid=$user done