From 02edfdc22bcc86b1e68b9a11364ca91d448b0c1a Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 25 Aug 2009 09:57:39 +0000 Subject: Initial cut at heimdal ACF. --- heimdal-controller.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 heimdal-controller.lua (limited to 'heimdal-controller.lua') diff --git a/heimdal-controller.lua b/heimdal-controller.lua new file mode 100644 index 0000000..d602010 --- /dev/null +++ b/heimdal-controller.lua @@ -0,0 +1,27 @@ +module(..., package.seeall) + +-- Load libraries +require("controllerfunctions") + +default_action = "status" + +function status(self) + return self.model.getstatus() +end + +function expert(self) + return controllerfunctions.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit Heimdal Config", "Configuration Set") +end + +function klist(self) + return self.model.klist() +end + +function kinit(self) + return controllerfunctions.handle_form(self, self.model.get_kinit, self.model.set_kinit, self.clientdata, "Submit", "Obtain Kerberos Ticket") +end + +function kdestroy(self) + return self:redirect_to_referrer(self.model.kdestroy()) +end + -- cgit v1.2.3