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:
1f8b7e4
)
ldapfinger: fix quoting
author
Alex Dehnert
<adehnert@mit.edu>
Fri, 9 Aug 2013 14:06:42 +0000
(10:06 -0400)
committer
Alex Dehnert
<adehnert@mit.edu>
Fri, 9 Aug 2013 14:06:42 +0000
(10:06 -0400)
ldapfinger
patch
|
blob
|
history
diff --git
a/ldapfinger
b/ldapfinger
index a71a22d4f5498a12308d86040f4e23c28f544d1a..62a84f49a15608d456a51080f07fb91b470cffbb 100755
(executable)
--- a/
ldapfinger
+++ b/
ldapfinger
@@
-1,10
+1,10
@@
#!/bin/bash
#!/bin/bash
-for user in
$@
; do
- echo ldapsearch -x -h ldap.mit.edu -b dc=mit,dc=edu
uid=$user
- ldapsearch -x -h ldap.mit.edu -b dc=mit,dc=edu
uid=$user
+for user in
"$@"
; do
+ echo ldapsearch -x -h ldap.mit.edu -b dc=mit,dc=edu
"uid=$user"
+ ldapsearch -x -h ldap.mit.edu -b dc=mit,dc=edu
"uid=$user"
done
echo Try also athrun consult ldaps
done
echo Try also athrun consult ldaps
-echo or ldapsearch -x -h ldap-too.mit.edu -b ou=moira,dc=mit,dc=edu
uid=$user
+echo or ldapsearch -x -h ldap-too.mit.edu -b ou=moira,dc=mit,dc=edu
"uid=$user"