summaryrefslogtreecommitdiff
path: root/src/monkeysphere
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@phys.columbia.edu>2008-06-10 18:38:46 -0400
committerJameson Graef Rollins <jrollins@phys.columbia.edu>2008-06-10 18:38:46 -0400
commitbe186e427ac34812e2b2a55489ae55fe2341f6a0 (patch)
tree09e8aa7a9000adc449d6b6328b041a88d06643c8 /src/monkeysphere
parent48cd196efb86f8661fbf77552ef6c26b11fe20c6 (diff)
Cleaned/fix up update-userid function. also some general cleanup.
Diffstat (limited to 'src/monkeysphere')
-rwxr-xr-xsrc/monkeysphere31
1 files changed, 19 insertions, 12 deletions
diff --git a/src/monkeysphere b/src/monkeysphere
index f279d86..d652ab3 100755
--- a/src/monkeysphere
+++ b/src/monkeysphere
@@ -1,5 +1,13 @@
#!/bin/sh
+# monkeysphere: MonkeySphere client tool
+#
+# The monkeysphere scripts are written by:
+# Jameson Rollins <jrollins@fifthhorseman.net>
+#
+# They are Copyright 2008, and are all released under the GPL, version 3
+# or later.
+
########################################################################
PGRM=$(basename $0)
@@ -26,11 +34,11 @@ usage: $PGRM <subcommand> [args]
Monkeysphere client tool.
subcommands:
- update-known-hosts (k) [HOST]... update known_hosts file
- update-authorized-keys (a) update authorized_keys file
- update-userid (u) [USERID]... add/update userid to
- authorized_user_ids
- help (h,?) this help
+ update-known-hosts (k) [HOST]... update known_hosts file
+ update-authorized-keys (a) update authorized_keys file
+ update-userids (u) [USERID]... add/update userid
+ gen-ae-subkey (g) generate an 'ae' capable subkey
+ help (h,?) this help
EOF
}
@@ -129,20 +137,19 @@ case $COMMAND in
log "$msAuthorizedKeys"
;;
- 'update-userid'|'u')
+ 'update-userids'|'u')
if [ -z "$1" ] ; then
failure "you must specify at least one userid."
fi
for userID ; do
- if ! grep -q "^${userID}\$" "$AUTHORIZED_USER_IDS" ; then
- log "userid '$userID' not in authorized_user_ids file."
- continue
- fi
- log "processing user id: '$userID'"
- process_user_id "$userID" "$userKeysCacheDir" > /dev/null
+ update_userid "$userID" "$userKeysCacheDir"
done
;;
+ 'gen-ae-subkey'|)
+ failure "function not implemented yet."
+ ;;
+
'help'|'h'|'?')
usage
;;