X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fmonkeysphere-authentication;h=df7d9bcf6ddf8fd2db17971973a37b7ca20ec0c8;hb=a3032fa566c60bc0cfa57ad9bce7a34220e75a9b;hp=5b30628a188341d2e8c64dbc339d377220caa2f7;hpb=f3a03d72bc9c01491fc1cfccdbcef353db058548;p=monkeysphere.git diff --git a/src/monkeysphere-authentication b/src/monkeysphere-authentication index 5b30628..df7d9bc 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"} @@ -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