summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClint Adams <schizo@debian.org>2010-10-02 15:06:54 -0400
committerClint Adams <schizo@debian.org>2010-10-02 15:26:59 -0400
commitbd9c23125a2c27721ddfc74a4c21e17f641bb6bd (patch)
tree817424f4a15f4a904bd0580420d84685d5197d48 /tests
parent447c9de61a15d4ef115e2b337161da2569b5aeb2 (diff)
ssh authorized_keys options test
Diffstat (limited to 'tests')
-rwxr-xr-xtests/basic19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/basic b/tests/basic
index 30cff06..9ae04b4 100755
--- a/tests/basic
+++ b/tests/basic
@@ -509,6 +509,25 @@ echo "### making sure we are back to normal..."
monkeysphere-authentication update-users $(whoami)
ssh_test true
+# check ssh authorized_key options
+echo
+echo "##################################################"
+echo "### checking ssh authorized_key option support..."
+cp "$TESTHOME"/.monkeysphere/authorized_user_ids{,.bak}
+echo ' no-X11-forwarding' >>"$TESTHOME"/.monkeysphere/authorized_user_ids
+echo ' no-port-forwarding' >>"$TESTHOME"/.monkeysphere/authorized_user_ids
+echo ' command="/bin/false"' >>"$TESTHOME"/.monkeysphere/authorized_user_ids
+monkeysphere-authentication update-users $(whoami)
+ssh_test /bin/true 1
+ssh_test /bin/false 1
+mv "$TESTHOME"/.monkeysphere/authorized_user_ids{.bak,}
+
+# ensure we're back to normal:
+echo
+echo "##################################################"
+echo "### making sure we are back to normal..."
+monkeysphere-authentication update-users $(whoami)
+ssh_test true
echo
echo "##################################################"