summaryrefslogtreecommitdiffstats
path: root/openssh-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-11-04 20:58:50 +0000
committerTed Trask <ttrask01@yahoo.com>2008-11-04 20:58:50 +0000
commit814429470ad700066026182ba5c00516558f57a2 (patch)
treee0414d1bf1c0de21b8db87ea6e649f39cb8a1cd2 /openssh-controller.lua
parent61673960b9f01553a85322665572d731b730acce (diff)
downloadacf-openssh-814429470ad700066026182ba5c00516558f57a2.tar.bz2
acf-openssh-814429470ad700066026182ba5c00516558f57a2.tar.xz
Modified openssh to allow deleting and adding certs from authorized_keys.
git-svn-id: svn://svn.alpinelinux.org/acf/openssh/trunk@1577 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'openssh-controller.lua')
-rw-r--r--openssh-controller.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/openssh-controller.lua b/openssh-controller.lua
index 6a76512..2ebf0da 100644
--- a/openssh-controller.lua
+++ b/openssh-controller.lua
@@ -24,3 +24,19 @@ end
function connectedpeers(self)
return self.model.list_conn_peers()
end
+
+function listusers(self)
+ return self.model.list_users()
+end
+
+function listauth(self)
+ return self.model.list_auths(self.clientdata.user)
+end
+
+function deleteauth(self)
+ return self:redirect_to_referrer(self.model.delete_auth(self.clientdata.user, self.clientdata.auth))
+end
+
+function addauth(self)
+ return controllerfunctions.handle_form(self, function() return self.model.get_auth(self.clientdata.user) end, self.model.create_auth, self.clientdata, "Add", "Add New Authorized Key", "Key Added")
+end