From: Daniel Kahn Gillmor Date: Sun, 26 Oct 2008 06:56:03 +0000 (-0400) Subject: testing: setting up the fake testuser account with an authorized_user_id. X-Git-Tag: monkeysphere_0.16-1~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b5b0fdfc95625892df654e4ae057a798e59d588;p=monkeysphere.git testing: setting up the fake testuser account with an authorized_user_id. --- diff --git a/tests/basic b/tests/basic index 9f4d02e..8d2b8f8 100755 --- a/tests/basic +++ b/tests/basic @@ -85,6 +85,11 @@ cat <> "$TEMPDIR"/testuser/.monkeysphere/monkeysphere.conf KNOWN_HOSTS=$TEMPDIR/testuser/.ssh/known_hosts EOF +# set up a simple default monkeysphere-server.conf +cat <> "$TEMPDIR"/monkeysphere-server.conf +AUTHORIZED_USER_IDS="$TEMPDIR/testuser/.monkeysphere/authorized_user_ids" +EOF + ### SERVER TESTS # setup monkeysphere temp gnupghome directories @@ -149,8 +154,8 @@ gpgadmin --armor --export "$HOSTKEYID" | gpg --import # teach the "server" about the testuser's key echo "### export testuser key to server..." gpg --export testuser | monkeysphere-server gpg-authentication-cmd --import -echo "### update server authorized_keys file for testuser..." -monkeysphere-server update-users testuser +echo "### update server authorized_keys file for this testuser..." +monkeysphere-server update-users "$USER" # connect to test sshd, using monkeysphere-ssh-proxycommand to verify # the identity before connection. This should work in both directions! diff --git a/tests/home/testuser/.monkeysphere/authorized_user_ids b/tests/home/testuser/.monkeysphere/authorized_user_ids new file mode 100644 index 0000000..4b51eaf --- /dev/null +++ b/tests/home/testuser/.monkeysphere/authorized_user_ids @@ -0,0 +1 @@ +Monkeysphere Test Suite Test User (DO NOT USE!!!)