summaryrefslogtreecommitdiff
path: root/src/monkeysphere-authentication
diff options
context:
space:
mode:
authorJameson Rollins <jrollins@finestructure.net>2010-07-04 00:06:35 -0400
committerJameson Rollins <jrollins@finestructure.net>2010-07-04 00:13:02 -0400
commitca88f1bccc252571c1f40ed84c40ea7ed4d7db20 (patch)
tree0d0e152c770715d49d5fc9d297f7672dc275485a /src/monkeysphere-authentication
parentc74075ae34bf6dd035f42ce044046e6f273ae73d (diff)
add keys-for-user subcommand to monkeysphere-authentication
This subcommand will output all valid key for a given user. The user's authorized_user_ids file will be read for OpenPGP user IDs, one per line. The ssh-formated RSA keys will be output to stdout. Also included is a simple script that takes the user as it's one argument and exec's this command. This is something that would be suitable for the proposed sshd AuthorizedKeysCommand.
Diffstat (limited to 'src/monkeysphere-authentication')
-rwxr-xr-xsrc/monkeysphere-authentication6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/monkeysphere-authentication b/src/monkeysphere-authentication
index 8c58645..af8c40d 100755
--- a/src/monkeysphere-authentication
+++ b/src/monkeysphere-authentication
@@ -55,6 +55,7 @@ Monkeysphere authentication admin tool.
subcommands:
update-users (u) [USER]... update user authorized_keys files
refresh-keys (r) refresh keys in keyring
+ keys-for-user USER output valid keys for user
add-id-certifier (c+) KEYID|FILE import and tsign a certification key
[--domain (-n) DOMAIN] limit ID certifications to DOMAIN
@@ -177,6 +178,11 @@ case $COMMAND in
gpg_sphere "--keyserver $KEYSERVER --refresh-keys"
;;
+ 'keys-for-user')
+ source "${MASHAREDIR}/keys_for_user"
+ keys_for_user "$@"
+ ;;
+
'add-identity-certifier'|'add-id-certifier'|'add-certifier'|'c+')
source "${MASHAREDIR}/setup"
setup