Print the LDAP command-line
authorAlex Dehnert <adehnert@mit.edu>
Mon, 24 Jan 2011 06:28:27 +0000 (01:28 -0500)
committerAlex Dehnert <adehnert@mit.edu>
Mon, 24 Jan 2011 06:28:38 +0000 (01:28 -0500)
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.

ldapfinger

index 0ed2581d7e82f87394f6afe6fb44d550a474d52e..8eb1185b1311e8b02985d249f1c41d1197335070 100755 (executable)
@@ -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