summaryrefslogtreecommitdiffstats
path: root/squid-ntlm-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'squid-ntlm-html.lsp')
-rw-r--r--squid-ntlm-html.lsp58
1 files changed, 58 insertions, 0 deletions
diff --git a/squid-ntlm-html.lsp b/squid-ntlm-html.lsp
new file mode 100644
index 0000000..ed11492
--- /dev/null
+++ b/squid-ntlm-html.lsp
@@ -0,0 +1,58 @@
+<?
+ local form = ...
+ local data = form.option
+ local service = form.service
+ local config = form.service.config
+
+ local srv1fill = ""
+ local srv2fill = "disabled"
+ if service.status == "running" then
+ srv1fill = "disabled"
+ srv2fill = ""
+ end
+
+ local ifthen = function( variable, value, result )
+ if variable == value then
+ io.write( result )
+ end
+ end
+
+?>
+<h1>Web Proxy - NTLM Authentication</h1>
+<p>
+Winbindd is a service that allows squid to authenticate against a Windows Domain Controller.
+Before authentication is possible, this machine must join the Windows domain and the winbindd
+service must be (re)started. It is only necessary to join the domain once.
+</p>
+
+<h2>Status</h2>
+<form action="" method="POST">
+<dt>winbindd is: <? io.write( service.status ) ?></dt>
+<dd><input class="submit" type="submit" name="srvcmd" value="start" <? io.write( srv1fill ) ?> style="width:100px">
+<input class="submit" type="submit" name="srvcmd" value="stop" <? io.write( srv2fill ) ?> style="width:100px">
+<input class="submit" type="submit" name="srvcmd" value="restart" <? io.write( srv2fill ) ?> style="width:100px"></dd>
+</form>
+
+<p>
+<pre style="color: #ff2020;"><? io.write( service.message ) ?></pre>
+</p>
+
+<p>
+This process runs as a service. When you make and save changes, the configuration
+files for the service are changed. However, the changes will not be <i>applied</i>
+until you restart the service.
+</p>
+
+<form action="" method="POST">
+<h2>Configuration</h2>
+
+<table>
+ <dt>Name</dt><dd>Value</dd>
+</table>
+
+<h3>Action</h3>
+<dt>What to do?</dt>
+<dd><input class="submit" type="submit" name="cmd" value="join domain">
+<input class="submit" type="submit" name="cmd" value="save"></dd>
+</form>
+