projects
/
user
/
alex
/
software
/
my-snippets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
282d77e
)
Print the LDAP command-line
author
Alex Dehnert
<adehnert@mit.edu>
Mon, 24 Jan 2011 06:28:27 +0000
(
01:28
-0500)
committer
Alex 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
patch
|
blob
|
history
diff --git
a/ldapfinger
b/ldapfinger
index 0ed2581d7e82f87394f6afe6fb44d550a474d52e..8eb1185b1311e8b02985d249f1c41d1197335070 100755
(executable)
--- 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