diff options
author | Andreas Brodmann <andreas.brodmann@gmail.com> | 2008-01-14 15:16:51 +0000 |
---|---|---|
committer | Andreas Brodmann <andreas.brodmann@gmail.com> | 2008-01-14 15:16:51 +0000 |
commit | d3f6fac84e5ed293b121ce0d92f07eb438cf6c96 (patch) | |
tree | eabf5f56ff5ec31380a21ec78f035b964f64d087 /squid-ntlm-html.lsp | |
parent | 7c8b2854e579402d546b41457828bf7622868d5a (diff) | |
download | acf-squid-d3f6fac84e5ed293b121ce0d92f07eb438cf6c96.tar.bz2 acf-squid-d3f6fac84e5ed293b121ce0d92f07eb438cf6c96.tar.xz |
1) you can now change to auth methods
2) tags insertion into config file solved with default config
3) modifications on views to look better with css
git-svn-id: svn://svn.alpinelinux.org/acf/squid/trunk@563 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'squid-ntlm-html.lsp')
-rw-r--r-- | squid-ntlm-html.lsp | 58 |
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> + |