www/web-proxy-sso: add pluggable templates

PR: https://github.com/opnsense/core/pull/1235
This commit is contained in:
Franco Fichtner
2016-10-24 10:21:23 +02:00
parent 1a14d86fe0
commit 2cc1572105
3 changed files with 26 additions and 0 deletions
@@ -0,0 +1,13 @@
{% if helpers.exists('OPNsense.proxy.forward.authentication.method') %}
{% if helpers.exists('system.authserver') %}
{% for server in helpers.toList('system.authserver') %}
{% if server.name == OPNsense.proxy.forward.authentication.method %}
{% if server.type == "ssoproxyad" %}
auth_param negotiate program "/usr/local/libexec/squid/negotiate_kerberos_auth"
auth_param negotiate children 10
auth_param negotiate keep_alive on
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
@@ -1 +1,2 @@
krb5.conf:/usr/local/etc/ssoproxyad/krb5.conf
rc.conf:/usr/local/etc/rc.d/ssoproxyad.conf
@@ -0,0 +1,12 @@
{% if helpers.exists('system.authserver') %}
{% for server in helpers.toList('system.authserver') %}
{% if helpers.exists(OPNsense.proxy.forward.authentication.method) %}
{% if server.name == OPNsense.proxy.forward.authentication.method %}
{% if server.type == "ssoproxyad" %}
squid_krb5_ktname="/usr/local/etc/ssoproxyad/PROXY.keytab"
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}