X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fmonkeysphere-authentication;h=057d14eb85179678727cb359d06c39e539c3b31d;hb=bcec6b61fb874910e17bb3762c823745ae12bd1c;hp=5b30628a188341d2e8c64dbc339d377220caa2f7;hpb=f3a03d72bc9c01491fc1cfccdbcef353db058548;p=monkeysphere.git diff --git a/src/monkeysphere-authentication b/src/monkeysphere-authentication index 5b30628..057d14e 100755 --- a/src/monkeysphere-authentication +++ b/src/monkeysphere-authentication @@ -54,6 +54,7 @@ Monkeysphere authentication admin tool. subcommands: update-users (u) [USER]... update user authorized_keys files + refresh-keys (r) refresh keys in keyring add-id-certifier (c+) KEYID|FILE import and tsign a certification key [--domain (-n) DOMAIN] limit ID certifications to DOMAIN @@ -124,6 +125,7 @@ MONKEYSPHERE_GROUP=$(get_primary_group "$MONKEYSPHERE_USER") PROMPT=${MONKEYSPHERE_PROMPT:=$PROMPT} AUTHORIZED_USER_IDS=${MONKEYSPHERE_AUTHORIZED_USER_IDS:=$AUTHORIZED_USER_IDS} RAW_AUTHORIZED_KEYS=${MONKEYSPHERE_RAW_AUTHORIZED_KEYS:=$RAW_AUTHORIZED_KEYS} +STRICT_MODES=${MONKEYSPHERE_STRICT_MODES:=$STRICT_MODES} # other variables REQUIRED_USER_KEY_CAPABILITY=${MONKEYSPHERE_REQUIRED_USER_KEY_CAPABILITY:="a"} @@ -150,7 +152,7 @@ export LOG_PREFIX # get subcommand COMMAND="$1" -[ "$COMMAND" ] || failure "Type '$PGRM help' for usage." +[ "$COMMAND" ] || $PGRM help shift case $COMMAND in @@ -166,6 +168,12 @@ case $COMMAND in update_users "$@" ;; + 'refresh-keys'|'r') + source "${MASHAREDIR}/setup" + setup + gpg_sphere "--keyserver $KEYSERVER --refresh-keys" + ;; + 'add-identity-certifier'|'add-id-certifier'|'add-certifier'|'c+') source "${MASHAREDIR}/setup" setup