summaryrefslogtreecommitdiffstats
path: root/heimdal-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-08-25 09:57:39 +0000
committerTed Trask <ttrask01@yahoo.com>2009-08-25 09:57:39 +0000
commit02edfdc22bcc86b1e68b9a11364ca91d448b0c1a (patch)
tree453bafbe532aa4733e395d74232d5b18813b5cc1 /heimdal-controller.lua
downloadacf-heimdal-02edfdc22bcc86b1e68b9a11364ca91d448b0c1a.tar.bz2
acf-heimdal-02edfdc22bcc86b1e68b9a11364ca91d448b0c1a.tar.xz
Initial cut at heimdal ACF.v0.1.0
Diffstat (limited to 'heimdal-controller.lua')
-rw-r--r--heimdal-controller.lua27
1 files changed, 27 insertions, 0 deletions
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
+