summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-11-03 19:27:24 +0100
committerGitHub <noreply@github.com>2026-11-03 19:27:24 +0100
commit329b63a60bb841e5f3fe8bc21073601a55d9bf1d (patch)
tree651e57ca6be260d0ba18d25280249a78bee25def /data
parent6ea85bda82cc50809d73c6b422308dd4bc52fb6b (diff)
parentb12b02d17c321c671ba318ad1bfd90e7bc4b5248 (diff)
downloadvyos-1x-329b63a60bb841e5f3fe8bc21073601a55d9bf1d.tar.gz
vyos-1x-329b63a60bb841e5f3fe8bc21073601a55d9bf1d.zip
Merge pull request #5626 from natali-rs1985/T9566
webproxy: T9566: Pass LDAP bind password via file instead of command line
Diffstat (limited to 'data')
-rw-r--r--data/templates/squid/squid.conf.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/squid/squid.conf.j2 b/data/templates/squid/squid.conf.j2
index 4e3d702a8..129f508c6 100644
--- a/data/templates/squid/squid.conf.j2
+++ b/data/templates/squid/squid.conf.j2
@@ -51,7 +51,7 @@ auth_param basic realm "{{ authentication.realm }}"
{# LDAP based Authentication #}
{% if authentication.method is vyos_defined %}
{% if authentication.ldap is vyos_defined and authentication.method is vyos_defined('ldap') %}
-auth_param basic program /usr/lib/squid/basic_ldap_auth -v {{ authentication.ldap.version }} -b "{{ authentication.ldap.base_dn }}" {{ '-D "' ~ authentication.ldap.bind_dn ~ '"' if authentication.ldap.bind_dn is vyos_defined }} {{ '-w "' ~ authentication.ldap.password ~ '"' if authentication.ldap.password is vyos_defined }} {{ '-f "' ~ authentication.ldap.filter_expression ~ '"' if authentication.ldap.filter_expression is vyos_defined }} {{ '-u "' ~ authentication.ldap.username_attribute ~ '"' if authentication.ldap.username_attribute is vyos_defined }} -p {{ authentication.ldap.port }} {{ '-ZZ' if authentication.ldap.use_ssl is vyos_defined }} -R -h "{{ authentication.ldap.server }}"
+auth_param basic program /usr/lib/squid/basic_ldap_auth -v {{ authentication.ldap.version }} -b "{{ authentication.ldap.base_dn }}" {{ '-D "' ~ authentication.ldap.bind_dn ~ '"' if authentication.ldap.bind_dn is vyos_defined }} {{ '-W ' ~ ldap_password_file if authentication.ldap.password is vyos_defined }} {{ '-f "' ~ authentication.ldap.filter_expression ~ '"' if authentication.ldap.filter_expression is vyos_defined }} {{ '-u "' ~ authentication.ldap.username_attribute ~ '"' if authentication.ldap.username_attribute is vyos_defined }} -p {{ authentication.ldap.port }} {{ '-ZZ' if authentication.ldap.use_ssl is vyos_defined }} -R -h "{{ authentication.ldap.server }}"
{% endif %}
acl auth proxy_auth REQUIRED
http_access allow auth